nathanskoot7357
ITEnthusiasm
verifySession
sessionRequired: false
SuperTokens
mnove.
lavenderlav
yzs
attemptRefreshingSession
doesSessionExist
false
ts const api = axios.create({ baseURL: '/api', timeout: 5_000 }); SuperTokens.addAxiosInterceptors(api); SuperTokens.init({ apiDomain: 'http://localhost:3000', apiBasePath: '/api/auth', }); async function signIn(form) { const res = await api.post('/auth/signin', form); // {"status":"OK","user":{"email":"test@gmail.com","id":"de770ff7-4524-4108-994f-717c1d12bec4","timeJoined":1650956757303}} // the set-cookie headers are also present, and cookies are saved correctly const attemptRefreshingSession = await SuperTokens.attemptRefreshingSession(); const doesSessionExist = await SuperTokens.doesSessionExist() console.log(attemptRefreshingSession, doesSessionExist); // false, false }
execreate
regenerate_access_token
rajivharlalka
message: unauthorised
__ainar__
morganv_08285
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).