[Manicraft1001]
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 }
howmuchrent
pepegc
signup/code/consume
'Access-Control-Allow-Credentials': true
fetch
axios
sao360
Deleted User
Version467
__ainar__
hobosapienz
registry.supertokens.io/supertokens/supertokens-postgresql:9.0.2
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).