arimgibson
supertokens-node
st-access-token
nik2208
Tushar
fatih.55
Initialisation not done. Did you forget to call the UserRoles.init or SuperTokens.init functions?
Erick
masterofpoupette
keezy2147
go: downloading github.com/twilio/twilio-go v0.26.0 go: downloading github.com/golang/protobuf v1.3.2 go: downloading github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
der_suchende
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; } }
mathewpregasen9889
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).