chore(deps): update dependency supertokens-auth-react to v0.24.1 #5943
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.21.3
->0.24.1
Release Notes
supertokens/supertokens-auth-react
v0.24.1
Compare Source
Added
getRedirectionURL
Changed
supertokens-web-js
dependency versionFixed
v0.24.0
Compare Source
Bug fixes
userContext
would not get passed correctly forThirdPartyPasswordless
recipeAdded
SuperTokensWrapper
intended to wrap around whole applications, providing a session contextChanged
Breaking changes
loading
to the session context. Please check if the session context is still loading before using other props.loading
is always false inside components wrapped byAuthWrapper
s withrequireAuth=true
Migration
Following is an example of how your components may have to change. If you had components like this:
It'd look like this after the update:
v0.23.2
Compare Source
Adds
Changes
cookieHandler
supertokens-web-js
Fixes
v0.23.1
Compare Source
v0.23.0
Compare Source
Changed
emailpassword
andthirdpartyemailpassword
recipestslib
Added
emailpassword
andthirdpartyemailpassword
recipes.emailpassword
andthirdpartyemailpassword
recipe.Added
emailpassword
andthirdpartyemailpassword
recipes.Breaking changes
setCookieSync
andgetCookieSync
from the interface forcookieHandler
when callingSuperTokens.init
v0.22.4
Compare Source
Added
v0.22.3
Compare Source
Build changes
v0.22.2
Compare Source
Changes
Build changes
v0.22.1
Compare Source
CI changes
v0.22.0
Compare Source
CI changes
Changed
user
in the following functions to include information returned by the third party providersignInAndUp
function for ThirdParty recipethirdPartySignInAndUp
function for the ThirdPartyEmailPassword recipethirdPartySignInAndUp
function for the ThirdPartyPasswordless recipeAdded
userContext
, learn more about this by visiting the advanced cusotmisations section in the documentationuserContext
prop, learn more about this by visiting the advanced cusotmisations section in the documentationverifyEmail
,sendVerificationEmail
submitNewPassword
,sendPasswordResetEmail
,signUp
,signIn
,doesEmailExist
.getAuthorisationURLWithQueryParamsAndSetState
,signInAndUp
.redirectToThirdPartyLogin
from thirdpartyemailpassword recipe.createCode
,resendCode
,consumeCode
,doesEmailExist
,doesPhoneNumberExist
redirectToThirdPartyLogin
,thirdPartySignInAndUp
,createCode
,resendCode
,consumeCode
,doesPasswordlessUserEmailExist
,doesPasswordlessUserPhoneNumberExist
verifyEmail
-> No longer acceptstoken
as a parameter, instead it callsgetEmailVerificationTokenFromURL
getEmailVerificationTokenFromURL
-> NEW FUNCTIONsubmitNewPassword
-> No longer acceptstoken
as a parameter, instead callsgetResetPasswordTokenFromURL
getResetPasswordTokenFromURL
-> NEW FUNCTIONgetOAuthState
-> RENAMED TOgetStateAndOtherInfoFromStorage
setOAuthState
-> RENAMED TOsetStateAndOtherInfoToStorage
getOAuthAuthorisationURL
-> RENAMED TOgetAuthorisationURLFromBackend
getAuthorisationURLWithQueryParamsAndSetState
-> NEW FUNCTIONgenerateStateToSendToOAuthProvider
-> NEW FUNCTIONverifyAndGetStateOrThrowError
-> NEW FUNCTIONgetAuthCodeFromURL
-> NEW FUNCTIONgetAuthErrorFromURL
-> NEW FUNCTIONgetAuthStateFromURL
-> NEW FUNCTIONredirectToThirdPartyLogin
-> REMOVED (usegetAuthorisationURLWithQueryParamsAndSetState
instead). NOTE: If you call this function yourself the SDK will no longer auto-redirect, you will need to redirect to the result url manually.signInAndUp
-> REMOVED, this function has been split into 3 new functions for simplicity (explained below)emailPasswordSignUp
-> NEW FUNCTIONemailPasswordSignIn
-> NEW FUNCTIONthirdPartySignInAndUp
-> NEW FUNCTIONgetLinkCodeFromURL
-> NEW FUNCTIONgetPreAuthSessionIdFromURL
-> NEW FUNCTIONclearLoginAttemptInfo
-> RENAMED TOclearPasswordlessLoginAttemptInfo
postAPIHook
configuration parameter that can be used to respond to network actions.Breaking changes
status
field along with other properties (instead of returning a boolean directly for example), to make function return types more consistent across recipesdisableDefaultImplementation
has been renamed todisableDefaultUI
to make the name more accurate to the effect the property has. This is applicable only if you are using the SDK with custom UI and disabling the pre-built UI that SuperTokens provides.Migration
fetchResponse
field for any function that makes a network request. If you override functions and return a custom object you will need to update your code to include afetchResponse
field that should be a clone of the original response object (Refer to this page)For example if your override looks like this:
You will need to modify the function like this:
NOTE: If you use the originalImplementation in your overrides, you can access
fetchResponse
from the returned objectNow returns
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.