supertokens-web-js
Advanced tools
Changelog
[0.2.1] - 2022-09-14
Passwordless.consumeCode
Changelog
[0.2.0] - 2022-09-14
validateClaims
& getClaimValue
functionsgetInvalidClaimsFromResponse
to the SessionClass to help parsing responses with invalid claim errorsAPI_INVALID_CLAIM
event to the Session recipeUserRoleClaim
and PermissionClaim
EmailVerification.init
like other recipes.verifyEmail
, sendVerificationEmail
and isEmailVerified
from auth recipes. These should now be called on the EmailVerification
recipeEmailVerification
recipe. You should configure them while initializing the EmailVerification
recipe.consumeCode
in the passwordless recipeSuperTokens.init({
// Normal init conf...
recipeList: [
EmailPassword.init({
preAPIHook: (context) => {
// Move email verification related pre-API hooks into the preAPIHook of the EmailVerification config
},
postAPIHook: (context) => {
// Move email verification related post-API hooks into the postAPIHook of the EmailVerification config
}
override: {
emailVerificationFeature: {
// These overrides should be moved into the config of the EmailVerification recipe
}
}
}),
]
})
Should become:
SuperTokens.init({
// Normal init conf...
recipeList: [
EmailVerification.init({
// Props from emailVerificationFeature of the EmailPassword.init config should be moved here.
override: {
// The overrides from emailVerificationFeature in the overrides of the EmailPassword config should be moved here
},
preAPIHook: (context) => {
// Move email verification related pre-API hooks here
},
postAPIHook: (context) => {
// Move email verification related post-API hooks here
},
}),
EmailPassword.init({}),
],
});
Changelog
[0.1.6] - 2022-08-23
consumePasswordlessCode
in ThirdPartyPasswordless optional.Changelog
[0.1.5] - 2022-08-11
Changelog
[0.1.4] - 2022-07-30
Changelog
[0.1.3] - 2022-07-18
Changelog
[0.1.2] - 2022-07-06
Passwordless.consumeCode
was not honoring the API specChangelog
[0.1.1] - 2022-06-27
Changelog
[0.1.0] - 2022-06-22
setCookieSync
and getCookieSync
from the interface for cookieHandler
when calling SuperTokens.init