Migration from the old version of supertokens-website
From version 4.1.X
to 4.2.X
Using fetch
- Change to the
init
function signature. See here.
- Default session expired code is
401
. Previously it was 440
. If using 440
, then be sure to set sessionExpiredStatusCode
to 440
in the init
call
- No need to add
credentials: "include"
to your API calls anymore. It is automatically inserted.
Using axios
- Change to the
init
function signature. See here.
- Default session expired code is
401
. Previously it was 440
. If using 440
, then be sure to set sessionExpiredStatusCode
to 440
in the init
call
- No need to add
withCredentials: true
to your API calls anymore. It is automatically inserted.
From version 0.0.X
to 4.X.X
Using fetch
- Change to the
init
function. See here.
- Renaming of the
sessionPossiblyExists
function to this.
Using axios
- Change to the
init
function. See here.
- Renaming of the
sessionPossiblyExists
function to this.