The AuthKit JavaScript SDK provides a client-side library for integrating AuthKit authentication into vanilla JavaScript applications.
Refer to the AuthKit documentation for detailed usage instructions and examples.
-beta.* suffix, for example, 3.2.0-beta.1. For more information on how to use the beta versions, refer to the README in the GitHub repository.Full Changelog: v0.16.0...v0.17.0
Full Changelog: v0.15.0...v0.16.0
Full Changelog: v0.14.0...v0.15.0
Full Changelog: v0.13.0...v0.14.0
feature_flags claim on jwt interface by @kkajla12 in #89Full Changelog: v0.12.0...v0.13.0
getClaims function by @nicknisi in #87Full Changelog: v0.11.0...v0.12.0
context option on getAuthorizationUrl and signIn by @nholden in #83getAccessToken method by @nicknisi in #85Full Changelog: v0.10.1...v0.11.0
Full Changelog: v0.10.0...v0.10.1
OnRefreshResponse typeOnRefreshResponseonRefresh callbacks no longer receive the refresh token (#58)getAccessToken calls are made when the token needs to be refreshed.switchToOrganization can be used to switch a user's active organization.signIn and signUp now take organizationId and loginHint parameters.refreshBufferInterval option to configure how soon the client will attempt to refresh. (#39)Updated console error message with more explanation when a code could not be exchanged due to missing codeVerifier.
Added context parameter to signIn()/signUp().
fixes an issue where we repeatedly attempted to refresh the session after it had already ended.
getAccessToken is called).onRefreshFailure on the initial refresh requestrefreshSession (getAccessToken will refresh when necessary)onRefreshError callbackgetAccessToken throws a LoginRequiredError if an access token cannot be returned.onRefresh() after successful code exchange responsepasswordResetToken option for signIn()getClaims function to decode access tokens.onRefresh callback that is fired when new authentication responses are received.