bladerpc
puff6248
createMagicLink
?redirectToPath=/path
signinup/code/consume
robschilder
derbernd
whatsappxthomas
exposeAccessTokenToFrontendInCookieBasedAuth: true
supertokens-node
13.1.5
14
The running SuperTokens core version is not compatible with this NodeJS SDK
managed core
der_suchende
execreate
python CSRF_TRUSTED_ORIGINS=[domain_names] CSRF_COOKIE_SECURE = True
json { "detail": "CSRF Failed: CSRF token missing." }
dhatguy
clean9326
getUserById
nestjs
shell [Nest] 1229 - 18/02/2023, 3:49:21 pm ERROR [ExceptionsHandler] 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 Function.getInstanceOrThrowError (/Users/xxx/Desktop/projects/chatgpt-studywithme/chatgpt-studywithme/backend/node_modules/supertokens-node/lib/build/recipe/thirdpartyemailpassword/recipe.js:229:15) at Function.getUserById (/Users/bytedance/Desktop/projects/chatgpt-studywithme/chatgpt-studywithme/backend/node_modules/supertokens-node/lib/build/recipe/thirdpartyemailpassword/index.js:82:33) at UserController.getUserInfo (/Users/xxx/Desktop/projects/chatgpt-studywithme/chatgpt-studywithme/backend/src/user/user.controller.ts:15:52)
ts @Controller('user') export class UserController { @Get() @UseGuards(new AuthGuard()) // For more information about this guard please read our NestJS guide. async getUserInfo(@Session() session: SessionContainer): Promise<User> { const userId = session.getUserId(); // You can learn more about the `User` object over here https://github.com/supertokens/core-driver-interface/wiki const userInfo = await ThirdPartyEmailPassword.getUserById(userId); //.... return userInfo; } }
TELYA
javascript EmailPassword.init({ emailVerificationFeature: { mode: "REQUIRED" } })
typescript EmailPasswordNode.init({ emailVerificationFeature: { createAndSendCustomEmail: async (user, emailVerificationURLWithToken) => { console.log(user, emailVerificationURLWithToken); } } })
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).