fix(deps): update dependency supertokens-web-js to v0.14.0 #1183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.6.0
->0.14.0
Release Notes
supertokens/supertokens-web-js (supertokens-web-js)
v0.14.0
Compare Source
Breaking changes
shouldTryLinkingToSessionUser
flag to sign in/up related function inputs:false
(or leave as undefined) during first factor sign-instrue
for secondary factors.EmailPassword.signIn
,EmailPassword.signUp
: both override and callable functionsThirdParty.getAuthorisationURLWithQueryParamsAndSetState
: both override and callable functionPasswordless
:consumeCode
,resendCode
,createCode
,setLoginAttemptInfo
,getLoginAttemptInfo
createCode
andsetLoginAttemptInfo
take this flag as an optional input (it defaults to false)getTenantId
to default to thetenantId
query parameter (if present) then falling back to the public tenant instead of always defaulting to the public tenantconsumeCode
function in the Passwordless Recipe (see in the Migration guide section below for more information)Migration guide
Session based account linking for magic link based flows
You can re-enable linking by overriding the
consumeCode
function in the passwordless recipe and settingshouldTryLinkingToSessionUser
totrue
.v0.13.1
Compare Source
v0.13.0
Compare Source
Breaking Changes
maxAgeInSeconds
value (previously 300 seconds) in EmailVerification Claim. If the claim value is true andmaxAgeInSeconds
is not provided, it will not be refreshed.v0.12.0
Compare Source
Breaking Changes
createCode
,resendCode
andconsumeCode
from the exports ofrecipe/passwordless/utils
SESSION_ALREADY_EXISTS
event to the session recipe. This is used by our pre-built UI.Migration guide
If you were using
ThirdPartyEmailPassword
, you should now initThirdParty
andEmailPassword
recipes separately. The config for the individual recipes are mostly the same, except the syntax may be different. Check our recipe guides for ThirdParty and EmailPassword for more information.If you were using
ThirdPartyPasswordless
, you should now initThirdParty
andPasswordless
recipes separately. The config for the individual recipes are mostly the same, except the syntax may be different. Check our recipe guides for ThirdParty and Passwordless for more information.v0.11.0
Compare Source
Breaking changes
The
shouldDoInterceptionBasedOnUrl
function now returns true:v0.10.1
Compare Source
Fixes
refetchTimeOnFalseInSeconds
andmaxAgeInSeconds
v0.10.0
Compare Source
Overview
Introducing multi-factor authentication
With this release, we are introducing MultiFactorAuthentication and TOTP, this will let you:
Check our guide for more information.
Changes
MultiFactorAuth
andTOTP
recipes. To start using them you'll need compatible versions:Breaking changes
firstFactors
into the return type ofgetLoginMethods
and removed the enabled flags of different login methods.validatorId
in claim validation errors toid
to match the backend SDKsMigration guide
getLoginMethods interface change
If you used to use the enabled flags in getLoginMethods:
Before:
After:
Renamed validatorId
If you used to use the
validatorId
prop of validationErrors, you should now useid
instead.Before:
After:
v0.9.2
Compare Source
What's Changed
Full Changelog: supertokens/supertokens-web-js@v0.10.1...v0.9.2
v0.9.1
Compare Source
Changes
dateprovider.js
bundle file to enable importingDateProvider
via a script tagv0.9.0
Compare Source
v0.8.0
Compare Source
Overview
Introducing account-linking
With this release, we are introducing AccountLinking, this will let you:
Check our guide for more information.
To use this you'll need compatible versions:
Breaking changes
createdNewUser
has been renamed tocreatedNewRecipeUser
createCode
,consumeCode
,createPasswordlessCode
andconsumePasswordlessCode
can now return status:SIGN_IN_UP_NOT_ALLOWED
signInAndUp
andthirdPartySignInAndUp
can now return new status:SIGN_IN_UP_NOT_ALLOWED
sendPasswordResetEmail
can now returnstatus: "PASSWORD_RESET_NOT_ALLOWED"
signIn
andemailPasswordSignIn
can now returnSIGN_IN_NOT_ALLOWED
signUp
andemailPasswordSignUp
can now returnSIGN_UP_NOT_ALLOWED
Migration
New User structure
We've added a generic
User
type instead of the old recipe specific ones. The mapping of old props to new in case you are not using account-linking:user.id
staysuser.id
user.email
becomesuser.emails[0]
user.phoneNumber
becomesuser.phoneNumbers[0]
user.thirdParty
becomesuser.thirdParty[0]
user.timeJoined
is stilluser.timeJoined
user.tenantIds
is stilluser.tenantIds
Checking if a user signed up or signed in
v0.7.3
Compare Source
Fixes
clientType
usage inthirdpartypasswordless
v0.7.2
Compare Source
Fixes
clientType
usage inthirdpartyemailpassword
andthirdpartypasswordless
v0.7.1
Compare Source
Changes
isEmailVerified
andsendVerificationEmail
requestsv0.7.0
Compare Source
Added
getTenantIdFromURL
to multiple recipesclientType
config in the input forSuperTokens.init
function, that is used by thirdparty and multitenancy recipes.Breaking changes
getAuthorisationURLWithQueryParamsAndSetState
setStateAndOtherInfoToStorage
,getAuthorisationURLFromBackend
,generateStateToSendToOAuthProvider
,verifyAndGetStateOrThrowError
,getAuthCodeFromURL
,getAuthErrorFromURL
,getAuthStateFromURL
getAuthorisationURLWithQueryParamsAndSetState
setStateAndOtherInfoToStorage
,getAuthorisationURLFromBackend
,generateStateToSendToOAuthProvider
,verifyAndGetStateOrThrowError
,getAuthCodeFromURL
,getAuthErrorFromURL
,getAuthStateFromURL
getThirdPartyAuthorisationURLWithQueryParamsAndSetState
setThirdPartyStateAndOtherInfoToStorage
,getAuthorisationURLFromBackend
,generateThirdPartyStateToSendToOAuthProvider
,verifyAndGetThirdPartyStateOrThrowError
,getThirdPartyAuthCodeFromURL
,getThirdPartyAuthErrorFromURL
,getThirdPartyAuthStateFromURL
Changes
Migration
Renamed parameters in
getAuthorisationURLWithQueryParamsAndSetState
Before:
After:
If the provider is redirecting to the backend directly (i.e.: Apple)
Before:
After:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.