- #1243 Adds export of
./polyfillin package.json
- #1251 IDX GenericRemediator patches (beta):
- allows flow entry point requests
-
#1245 IDX GenericRemediator patches (beta):
- disables client side validation
- fixes ion response primitive types transformation issue
- adds missing types to
IdxAuthenticator - adds missing action meta to
IdxTransaction.availableSteps
-
#1247 - Fixes OV enrollment flow issue in authentication flow.
- #1197
- Changes implementation of
SyncStorageServiceusingbroadcast-channelinstead of usingStorageEvent. SupportslocalStorageandcookiestorage. - Adds
LeaderElectionServiceas separate service - Fixes error
Channel is closedwhile stopping leader election
- Changes implementation of
- #1158 Adds MyAccount API. See MyAccount API DOC for detailed information.
- #1231 IDX: exposes field level error messages
- #1234 IDX: passes unknown selected option to backend for validation when use GenericRemediator (beta)
- #1221 Fixes ES module for Node.js by using latest
broadcast-channel
- #1225
oktaAuth.start/oktaAuth.stopnow return aPromise, ensures services have started/stopped before resolving
- #1226 Fixes idx terminal status response SDK level
undefinederror when use GenericRemediator (beta) - #1222 Invalid (or expired) refresh tokens are now removed from storage when invalid token error occurs
- #1224 Fixes missing
relatesTotype fromNextStep
- #1215 Fixes polling issue in GenericRemediator (beta)
- #1200 Fixes
canRemediatelogic in GenericRemediator (beta) to handle nested fields - 1207 Fixes
canRemediatelogic in GenericRemediator (beta) to handleoptionsfields
- #1200 Adds missing fields to
Inputtype inidxmodule
- #1186 Supports
maxAgeparam in interaction code flow. This parameter can be passed in from either SDK level options oridx.interactoptions. - #1189 IDX: includes
optionsfield ininputsscope, and deprecated top leveloptionsfromnextStepfield of the response (removal will happen in the next major version).
- #1189 IDX: fixes
inputtype indicator's field name forusernameandauthenticator. Before the indicator was named askey, now it's fixed totypeto follow input metadata with all other inputs.
- #1240 Fixes Apple SSO flow: includes
stepUpon returnedIdxTransaction
- #1199 Fixes webauthn enrollment/verification to accept
credentialsobject
- #1182 Fixes security question verification to accept
credentials.answer - #1184 Fixes type declarations:
ApiError,responseType,responseMode - #1185 Fixes "cancel" and "skip" action called after receiving a terminal or error response
- #1180 Fixes commonjs bundle
dynamic importtranspiling issue
#1177 - fixes issue with repeated calls to oktaAuth.start()
- #1161
- IDX actions accept optional/additional parameters
requestDidSucceedis returned onIdxTransaction- adds IDX option
shouldProceedWithEmailAuthenticatorto disable email authenticator auto-selection
-
- IDX: form field-level messages are now passed through via idxState
- Type Fixes:
- IdxContent:
userproperty now optional - Input: added missing
keyproperty
- IdxContent:
-
- fixes for stateToken flow
- #1145
- refactor: IDX methods now use auth-js http client
- refactor: idx-js methods have been refactored to idxState
- #1169 Removes deleted file which was inadvertently added back in a merge
- #1160
- Fixes error handling for IDX actions
- Fixes saved IDX transaction
- #1090
- An
authenticatorcan be provided to IDX methods as either a string (representing the authenticator key) or an authenticator object - IDX functions will accept the "canonical" name for inputs (as defined by server response). For example a
credentialsobject can be passed to satisfy an "identify" remediation instead ofusernameandpassword idx.proceedwill continue without saved transaction meta if astateHandleis available- Unknown remediations/values will proceed if the proper data is supplied by the caller
- IDX response object has a new field
requestDidSucceedwhich will be false if the XHR was returned with a non-2xx HTTP status
- An
- #1090
- Fixes concurrency issue with
transformAuthState. Concurrent auth state updates will now enqueue calls totransformAuthStateso that they execute sequentially - Fixes issue with in-memory storage provider, where storage was shared between AuthJS instances in the same page/process. In-memory storage will now be unique per AuthJS instance.
- Fixes issue with the
stepoption in IDX flows: it will only be used for a single remediation cycle
- Fixes concurrency issue with
- #1136 Fixes typo in security question enrollment
- #1090 Removes runtime regenerator for development builds
- #1113 Updates types for
SigninWithCredentialsOptionsandSignInOptionsto supportSP Initiated Auth - #1125 IDX - Supports auto select methodType (when only one selection is available) for
authenticator-verification-dataremediation - #1114 Exposes ESM node bundle
- #1114 Fixes ESM browser bundle issue by only using ESM
importsyntax
- #1130
statenow stored in session during verifyEmail flow
- #1124
- Adds multi-tab "leadership" election to prevent all tabs from renewing tokens at the same time
- Adds granular configurations for
autoRenew(active vs passive) - Adds options to
isAuthenticatedto override client configuration - Fixes issue in token renew logic within
isAuthenticated, tokens are now read fromtokenManager(not memory) before expiration is checked
- #1036 Adds
webauthnauthenticator support in idx module - #1075 Adds top level
invokeApiMethodmethod as an escape hatch to make arbitrary OKTA API request - #1093 Allows passing device context headers (
X-Forwarded-For,User-Agent,X-Okta-User-Agent-ExtendedandX-Device-Token) toidx.interact. Follow setHeaders section to add headers to http requests.
- #1071 TypeScript: Adds fields for
Inputtype in NextStep object - #1094 TypeScript: Fixes
SigninOptions.contexttype - #1092 Call
updateAuthStatewhenhandleLoginRedirectfails
- #1073 Upgrades
cross-fetchto resolve security vulnerability
- #1003 Supports generic UserClaims type. Custom claims should be extended by typescript generics, like
UserClaims<{ groups: string[]; }> - #1050 Removes
userAgentfield from oktaAuth instance - #1014 Shared transaction storage is automatically cleared on success and error states. Storage is not cleared for "terminal" state which is neither success nor error.
- #1051 Removes
useMultipleCookiesfrom CookieStorage options - #1059
- Removes signOut option
clearTokensAfterRedirect - Adds signOut option
clearTokensBeforeRedirect(default:false) to remove local tokens before logout redirect happen
- Removes signOut option
- #1057 Strict checks are now enabled in the Typescript compiler options. Some type signatures have been changed to match current behavior.
- #1062
- Authn method
introspectis renamed tointrospectAuthn(still callable astx.introspect) IdxFeatureenum is now defined as strings instead of numbers
- Authn method
- #1014 Updates IDX API to support email verify and recovery/activation
- adds new configuration options
recoveryTokenandactivationToken - email verify callback:
- adds support for passing
otpto idx pipeline - updates samples to display error message with OTP code
- adds support for passing
- idx methods support new options:
exchangeCodeForTokens. If false,interactionCodewill be returned on the transaction at the end of the flow instead oftokens.autoRemediate. If false, there will be no attempt to satisfy remediations even if values have been passed.
- TransactionManager supports new option:
saveLastResponse. If false, IDX responses will not be cached.
- adds new configuration options
- #1062
- All IDX methods are exported.
useInteractionCodeFlowdefaults totruefor sample and test apps.
- #1064 Supports skip authenticator in idx authentication flow
- #1054 Fixes Typescript build error
- #1010 Supports
clearPendingRemoveTokensoption insignOutmethod. This option can be used to avoid cross tabs sign out issue with Okta's downstream client SDK'sSecureRoutecomponent - #1035 Adds
security questionauthenticator support in idx module
- #1028 Any error caught in
token.renew()will be emitted and containtokenKeyproperty - #1027 Don't reject
isAuthenticated()because of failed token renewal - #1032 Fixes idx recover password flow with identifier first org policy
- #1048 Points browser field to UMD bundle
- #1021 Removes
typefield in package.json. As okta-auth-js includes multiple bundles (cjs, esm, umd) in the package, explicittypefield causes error for some type of bundlers. This change fixes issue with @angular/cli.
- #1004 Allows extra query parameters to be added to the
authorizeurl
- #1000
- Fixes broken ES module bundle
- Updates
browserfield inpackage.jsonto enable bundlers to use the ES module bundle by default
- #1005
- Handles
rememberMeboolean in IDX Identify remediation adapter - Typescript: Adds
typefield forInputtype in NextStep object
- Handles
- #1012 Fixes null access when crypto is not present
- #990 Supports email verify callback
- #988 Fixes Safari & Firefox browsers block
getWithPopupissue - #995 Sends cookie for
authnrelated requests - #985 Fixes issue with renewTokens that would drop scopes passed to
getToken
- #981 TypeScript: Allows optional paramters for IDX methods
- #986 TypeScript: Interface
SignInWithRedirectOptionsshould extendTokenParams - #992 TypeScript: Adds fields for
Inputtype in NextStep object - #997 Validates
scopesconfig param is anarray
- #963
- Adds
getPreviousAuthStatemethod toAuthStateManager - Allows null type for authState related methods / fields
- Adds
- #948 Adds
Google Authenticatorsupport in idx module
- #947 TypeScript: Allow custom keys in
AuthStateinterface
- #967 Throw error in
parseFromUrlif can't load transaction meta
- #933 Adds
ignoreLifetimeoption to disable token lifetime validation - #932 Adds
headerswith response headers to all responses
- #936 Fixes getting mutiple memory storages issue in browser environment
- #926 Fixes incorrect using of
tokenManagerconfig (optionsautoRenew,autoRemove) inOktaAuth.isAuthenticated. - #931 Fixes types compatibility issue with old typescript versions (< 3.8)
- #930 Fixes incorrect error message in idx
AuthTransactionwhen user is not assigned.
- #927 Not trigger
authStateManager.updateAuthStateduring login redirect instartmethod.
- #916 Removes misleading warning message for TokenManager methods
- #908 Enables dynamic attributes for profile enrollment
- #906
- Checks idToken integrity during token auto renew process
- Enables emitting
renewedevent forTokenManager.setTokensmethod - Exposes
cryptoutil module
- #893 Fixes MFA keep returning
MFA_REQUIREDstatus
- #891 Adds new method
http.setRequestHeader
- #853 Updates
token.parseFromUrlsignature (adds optional parameter)
- #873 Fixes AuthStateManager emitting inconsistence
isAuthenticatedstate during active token auto renew by only checking existence of both tokens from storage
- #862 Fixes issue with untranspiled
classkeyword - #858 Fixes issue with verifying tokens when using a proxied issuer
- #845 Fixes issue with renewing using refresh tokens
- #831 Calculates ID token expiry time based on local clock
- #832 Supports rotating refresh tokens
- #838
idx.recoverPassword- checks if flow is supported
- #832 Fixes issues with refresh tokens
- #839 Fixes
@okta/okta-idx-jsmissing core-js dependency. - #844 Fixes ES module includes
SDK_VERSIONplaceholder issue
- #839
- Moves
tsdfrom dependencies to devDependencies - Reduces bundles size by upgrading
@okta/okta-idx-jsto 0.18.0 (replacedjsonpathwithjsonpath-plus) - Reduces bundles size by removing unnecessary license banner
- Moves
- #808 Fixes CommonJS bundle missing crypto modules issue
- #730
updateAuthStatereturns a Promise. - Adds
idxmodule. See details in IDX README.md
- #807 Fixes CommonJS bundle missing crypto modules issue
- #742 Fixes an issue where storage was being incorrectly cleared after an IDP redirect
- #731 Fixes issue with
handleLoginRedirectwhere a redirect could occur after an exception was thrown.
- #742 Fixes an issue where storage was being incorrectly cleared after an IDP redirect
- #731 Fixes issue with
handleLoginRedirectwhere a redirect could occur after an exception was thrown.
- #694 Adds
cookies.sessionCookieoption
- #689 New methods
startandstopare added to controlOktaAuthas a service. - #515 Removes
token.valuefield - #540 Locks
tokenManager.expireEarlySecondsoption with the default value (30s) for non-dev environment - #677 Http requests will not send cookies by default
- #678 Default value for
originalUriis null. - #706 Removes
isPendingfromAuthState
- #675 Removes warning when calling
updateAuthStatewhen there are no subscribers - #706 calling
isAuthenticatedwill renew expired tokens whenautoRenewis true
- #656 Fixes
TokenManager.renewto renew only requested token
- #656 Adds
token.renewTokensWithRefresh
- #652 Accepts 'state' as a constructor option
- #646 Fixes validate token using issuer from well-known config
- #648 Updates widget to 5.4.2
- #653 Removes isLoginRedirect check in oidc logic
- #661 Upgrades node-cache to 5.1.2
- #638 Fixes an issue with revoking refresh tokens
- #632 Fixes an issue with renewing refresh tokens
- #616 Fixes issue with
fetchon IE Edge versions 14-17.
- #627 Fixes an issue with Typescript and
StorageManagerOptions
- #620 Adds support for
interaction_codeanderror=interaction_requiredon redirect callback - #604 Adds new utility objects:
storageManagerandtransactionManager
- #614 Fixes issue with renewTokens and implicit flow: get responseType value from SDK configuration
- #594 Adds
@babel/runtimeto dependencies list. - #572 Add idps options for Signin widget flow in samples
- #565 Adds support for widget version and interaction code to test app and samples
- #616 Fixes issue with
fetchon IE Edge versions 14-17.
- #585 Uses native fetch, if available
- #583 Better error handling for redirect flows: if redirect URI contains
errororerror_descriptionthenisLoginRedirectwill return true andparseFromUrlwill throwOAuthError
- #579 Removes overeager
catchwhen using refresh token
- #567 Adds new methods:
token.prepareTokenParamstoken.exchangeCodeForTokenspkce.generateVerifierpkce.computeChallengeand constant:pkce.DEFAULT_CODE_CHALLENGE_METHODThis API allows more control over thePKCEauthorization flow and is enabled for both browser and nodeJS.
- #554 Adds MFA types
- #518 Added
claimstoAccessToken
- Adding the ability to use refresh tokens with single page applications (SPA) (Early Access feature - reach out to our support team)
scopesconfiguration option now handles 'offline_access' as an option, which will use refresh tokens IF your client app is configured to do so in the Okta settings- If you already have tokens (from a separate instance of auth-js or the okta-signin-widget) those tokens must already include a refresh token and have the 'offline_access' scope
- 'offline_access' is not requested by default. Anyone using the default
scopesand wishing to add 'offline_access' should passscopes: ['openid', 'email', 'offline_access']to their constructor
renewTokens()will now use an XHR call to replace tokens if the app has a refresh token. This does not rely on "3rd party cookies"- The
autoRenewoption (defaults totrue) already callsrenewTokens()shortly before tokens expire. TheautoRenewfeature will now automatically make use of the refresh token if present
- The
signOut()now revokes the refresh token (if present) by default, which in turn will revoke all tokens minted with that refresh token- The revoke calls by
signOut()follow the existingrevokeAccessTokenparameter - whentrue(the default) any refreshToken will be also be revoked, and whenfalse, any tokens are not explicitly revoked. This parameter name becomes slightly misleading (as it controls both access AND refresh token revocation) and will change in a future version.
- The revoke calls by
- #541 Fixes type error in
VerifyRecoveryTokenOptions
- #535 Respects
scopesthat are set in the constructor
- #869
- Implements
AuthStateManagerto evaluate and emit latest authState. Exposes new methods fromAuthStateManager:authStateManager.getAuthStateauthStateManager.updateAuthStateauthStateManager.subscribeauthStateManager.unsubscribe
- Adds new methods in sdk browser scope:
sdk.signInWithCredentialssdk.signInWithRedirectsdk.isAuthenticatedsdk.getUsersdk.getIdTokensdk.getAccessTokensdk.storeTokensFromRedirectsdk.setOriginalUrisdk.getOriginalUrisdk.removeOriginalUrisdk.isLoginRedirectsdk.handleLoginRedirect
- Deprecates method in sdk browser scope:
sdk.signIn
- Adds new methods in
sdk.tokenManager:tokenManager.getTokenstokenManager.setTokens
- Accepts new options
transformAuthStaterestoreOriginalUriautoRemovedevMode
- Implements
- #469 Adds "rate limiting" logic to token autoRenew process to prevent too many requests be sent out which may cause application rate limit issue.
- #503 Supports relative uri for options.redirectUri
- #478 Adds cross tabs communication to sync
AuthState. - #525 Adds new methods
hasResponseType,isPKCE,isAuthorizationCodeFlow. The optionresponseTypeis now accepted in the constructor.
- #468 Fixes issue where HTTP headers with an undefined value were being sent with the value "undefined". These headers are now removed before the request is sent.
- #514 Fixes OAuth redirect params issue in legacy browsers.
- #468 Fixes issue where HTTP headers with an undefined value were being sent with the value "undefined". These headers are now removed before the request is sent.
- #514 Fixes OAuth redirect params issue in legacy browsers.
- #520 token.isLoginRedirect will check that current URL matches the redirectUri
-
#491 Fixes issue with OAuth param cookie when using self-hosted signin widget
-
#489 Fixes sameSite cookie setting when running on HTTP connection
- #473 Fixes login issue when cookies are blocked or used as shared state storage
- #413 Adds support for Typescript. Uses named exports instead of default export.
- #444 New method
tokenManager.hasExpiredto test if a token is expired
- #444
- Implements "active" autoRenew. Previously tokens would be renewed or removed when calling
tokenManager.get. Now they will be renewed or removed in the background. If autoRenew is true, tokens will be renewed before expiration. If autoRenew is false, tokens will be removed from storage on expiration. onSessionExpiredoption has been removed. TokenManager events can be used to detect and handle token renewal errors.tokenManager.getno longer implements autoRenew functionality (autoRenew is done by a separate process withinTokenManager). Even withautoRenew, it is possible that the token returned from the TokenManager may be expired, since renewal is an asynchronous process. New methodtokenManager.hasExpiredcan be used to test the token and avoid this potential race condition.
- Implements "active" autoRenew. Previously tokens would be renewed or removed when calling
- #522 Fixes
token.isLoginRedirectissue withcodequery params in url - #517 Fixes OAuth redirect params issue in legacy browsers
-
#491 Fixes issue with OAuth param cookie when using self-hosted signin widget
-
#489 Fixes sameSite cookie setting when running on HTTP connection
- #473 Fixes login issue when cookies are blocked or used as shared state storage
- #440 Fixes signOut XHR fallback to reload page only if postLogoutRedirectUri matches the current URI
- #445 Clears access token from storage after token revocation
- #422 Fixes revoke accessToken in signOut method
- #441 Fixes issue involving an "invalid grant" error: "PKCE verification failed."
- #431 Skips non parsable iframe messages for
sdk.fingerprint
-#408 Provides a polyfill for IE 11+
-#410 Add token.isLoginRedirect function to prevent app from starting new Oauth flow while already in OAuth callback state.
-
#400 Allows an accessToken to be retrieved without an idToken. Also allows retrieving "default" scopes as defined by the custom authorization server.
-
#402 Fixes tokenManager cookie storage size limitation issue by store tokens in separated cookies.
-
#395 Prevents concurrent use of token API methods such as
getWithoutPrompt,getWithRedirectorgetWithPopupwithin a single running instance. These methods will be executed within a queue to ensure that they complete sequentially. This fix only affects a single instance. If there are several instances running (for example, in multiple tabs) it is still possible for token API methods to be executing concurrently. -
#399 Fixes an error involving PKCE flow and the signin widget.
- #384 Shifts browser storage for ephemeral PKCE code challenge to default to sessionStorage before localStorage or cookies.
- This should reduce problems with multiple tabs making overlapping requests to renew tokens.
- #386 Fixes
token.verify:validationParamsshould be optional.
- #369
-
Will reject with error if PKCE is enabled but not supported when OIDC flow is initiated. Previously this check was done in the constructor and affected non-OIDC flows
-
Will print a console warning and disable secure cookies if cookies.secure is enabled on an HTTP connection. Previously this would throw in the constructor.
-
- #363
- Expose server bundle for React Native platform as an Authentication SDK.
- Handle userAgent customization with newly added userAgent field in config.
-
#354 - Omit cookies from API requests. Removes warning messages in latest version of Chrome.
-
#355 - Fix for authorization_code flow for non-SPA applications (when responseType=code and pkce=false). The code can be retrieved client-side using
parseFromUrl()without throwing an error.
New option cookies allows overriding default secure and sameSite values.
-
#308 - Removed
jqueryandreqwesthttpRequesters -
#309 - Removed
Qlibrary, now using standard Promise. IE11 will require a polyfill for thePromiseobject. Use ofPromise.prototype.finallyrequires Node > 10.3 for server-side use. -
#310 - New behavior for signOut()
postLogoutRedirectUriwill default towindow.location.origin- signOut() will revoke access token and perform redirect by default. Fallback to XHR closeSession() if no idToken.
- New method closeSession() for XHR signout without redirect or reload.
- New method revokeAccessToken()
-
#311 - parseFromUrl() now returns tokens in an object hash (instead of array). The
stateparameter (passed to authorize request) is also returned. -
#313 - An HTTPS origin will be enforced unless running on
http://localhostorcookies.secureis set tofalse -
#316 - Option
issueris required. Optionurlhas been deprecated and is no longer used. -
#317 -
pkceoption is nowtrueby default.grantTypeoption is removed. -
#320 -
getWithRedirect,getWithPopup, andgetWithoutPromptpreviously took 2 sets of option objects as parameters, a set of "oauthOptions" and additional options. These methods now take a single options object which can hold all available options. Passing a second options object will cause an exception to be thrown. -
- Default responseType when using implicit flow is now
['token', 'id_token']. - When both access token and id token are returned, the id token's
at_hashclaim will be validated against the access token
- Default responseType when using implicit flow is now
-
#325 - Previously, the default
responseModefor PKCE was"fragment". It is now"query". Unless explicitly specified using theresponseModeoption, theresponse_modeparameter is no longer passed bytoken.getWithRedirectto the/authorizeendpoint. Theresponse_modewill be set by the backend according to the OpenID specification. Implicit flow will use"fragment"and PKCE will use"query". If previous behavior is desired, PKCE can set theresponseModeoption to"fragment". -
#329 - Fix internal fetch implementation.
responseTextwill always be a string, regardless of headers or response type. If a JSON object was returned, the object will be returned asresponseJSONandresponseTypewill be set to "json". Invalid/malformed JSON server response will no longer throw a raw TypeError but will return a well structured error response which includes thestatuscode returned from the server.
-
#306 - Now using babel for ES5 compatibility. All polyfills have been removed.
-
#312 - Added an E2E test for server-side authentication (node module, not webpack).
-#338 - (Fix for Chrome 80) Setting 'Secure' on cookies if running on HTTPS. Setting 'SameSite=Lax' on cookies if running on HTTP. TokenManager (if using cookie storage) will retain previous behavior, setting 'SameSite=Lax' in all cases unless tokenManager.secure is set to true via config.
- #334 - Setting 'SameSite=none' for all cookies (Fix for iFrame)
- #324 - Support
responseMode: "query"option for SPA apps using PKCE flow
- #315
getWellKnownwas using base url over issuer. Method has been fixed to use issuer, if configured, and will fallback to base url - #319 - Setting 'SameSite=lax' for all cookies (Fix for Firefox/Safari)
- #304 - Will set a 'SameSite' value on all cookies set by this SDK
- Cookies intended for server-side use will be set to 'Lax', cookies intended for client-side use will be set to 'Strict'
- #271 - New option
onSessionExpired
- #293 - Copy markdown files to package directory during publish
- #288 - New options for
signOut:- Can provide a post-logout redirect URI.
- Can revoke access token
- #288 - calling
signOutwill clear the TokenManager. - #284 -
isPKCESupportedwill return false ifTextEncoderis not available (IE Edge).
- #284 - better error messages when attempting to use PKCE in an unsupported browser configuration.
- Fixes incorrect npm publish of previous version
- #266 - New storage options for TokenManager
- #265 - Fix for popup blockers
- #256 - Adds E2E tests, updates test app
- #249 - Convert to yarn workspace
- #264 - Removed lib/config.js, replaced with lib/constants.js and webpack define
- add5369 Add support to pass callback to poll function
- 541683 Origin mismatch will now cause promise rejection (token renew)
- d9900a TokenManager: return existing promise for concurrent requests
- 77ece4 Clear token on 'AuthSdkError'
- (#238) - Adds pass-thru of optional 'loginHint' and 'idpScopes' params (resolves issue #214)
- (#235) - Option
grantTypehas been deprecated and will be removed in 3.0
- (#233) - New option
pkce
-
(#233) The default
responseModewas incorrectly set tofragmentinstead ofquerywhen theresponseTypewascode. This regression was introduced in version2.6.0. -
747216b fix build process, so that /dist/okta-auth-js.min.js is for browsers (since version 2.2.0, dist/ output was being built for node.js applications, which was not intended)
- d8d2fee TokenManager: new option
expireEarlySeconds
- TokenManager: Re-enables use of custom storage keys
- TokenManager: Document the
maxClockSkewoption
- 0a8a4e1 PKCE support
- TokenManager: tokens were being expired 5 minutes early
- d736cc9 - New TokenManager option to support HTTPS-only "secure" cookies.
- fddec0a - Use
fetchas the default request agent (instead ofreqwest).
- #187 - When deprecated
ajaxRequestwas passed to config, the logger for the deprecate message was still using window.console. This fix makes the logger isomorphic.
- #184 - Adds support for calling the AuthN API from Node
- #172 - Fixes an issue where default storage was read-only
- #161 -
ignoreSignaturewas not set when redirecting
- Fixed an problem, introduced in 2.0.0, that was causing tokens to be refreshed every time
authClient.tokenManager.get('accessToken')was called.
-
Token retrieval is now asyncronous to account for automatic token renewal.
// ES2016+ const accessToken = await authClient.tokenManager.get('accessToken'); // Handle as a promise authClient.tokenManager.get('accessToken') .then(function(accessToken) { console.log(accessToken); });
-
Removed the following deprecated methods:
idToken.authorizeidToken.verifyidToken.refreshidToken.decode
- Clears whitespace around URLs when instantiating the client.
- Infer the
urlfrom theissuerto simplify client setup.
- Renames all
refreshmethods on thetokenandtokenManagerobjects torenew.