drixhua
matth_na
aquamarine2620
console.log('toto1') const session = await Session.getSession(req, res) const user = await EmailPassword.getUserById(session.getUserId()) console.log('toto2') if (user === undefined) { next(new Error('INTERNAL_AUTHENTICATION_ERROR')) return } const { metadata } = await UserMetadata.getUserMetadata(user.id)
recipeList: [ UserRoles.init(), // RBAC Session.init({ cookieDomain: `.${process.env.CLUSTER_HOST ?? ''}` }), // initializes session features UserMetadata.init() ]
/app/node_modules/supertokens-node/lib/build/recipe/emailpassword/recipe.js:204 throw new Error("Initialisation not done. Did you forget to call the SuperTokens.init function?"); ^ Error: Initialisation not done. Did you forget to call the SuperTokens.init function? at Recipe.getInstanceOrThrowError (/app/node_modules/supertokens-node/lib/build/recipe/emailpassword/recipe.js:204:15) at Object.getUserById (/app/node_modules/supertokens-node/lib/build/recipe/emailpassword/index.js:72:33) at file:///app/dist/endpoints/save_shipping/post/controller.js:18:38 at Generator.next (<anonymous>) at fulfilled (file:///app/dist/endpoints/save_shipping/post/controller.js:4:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
whatabout_79947
Sekai
declare const ResetPasswordUsingToken: (prop?: any) => JSX.Element;
jhjhjhjh9964
Luca
javascript await Session.signOut(); alert(await Session.doesSessionExist())
mukulg22
Deleted User
majskiy
thirdPartySignInAndUp
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).