@okta/okta-auth-js
Advanced tools
Changelog
4.0.0
tokenManager.hasExpired
to test if a token is expiredtokenManager.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.onSessionExpired
option has been removed. TokenManager events can be used to detect and handle token renewal errors.tokenManager.get
no longer implements autoRenew functionality (autoRenew is done by a separate process within TokenManager
). Even with autoRenew
, it is possible that the token returned from the TokenManager may be expired, since renewal is an asynchronous process. New method tokenManager.hasExpired
can be used to test the token and avoid this potential race condition.Changelog
3.1.3
#395 Prevents concurrent use of token API methods such as getWithoutPrompt
, getWithRedirect
or getWithPopup
within 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.