Axel
fasterthanlight._
andrewlee1123
rp_st
kubessandra
fragordie
ts @Injectable() export class GQLAuthGuard implements CanActivate { async canActivate(context: ExecutionContext): Promise<boolean> { const ctx = GqlExecutionContext.create(context).getContext(); let err = undefined; // You can create an optional version of this by passing {sessionRequired: false} to verifySession await verifySession({ sessionRequired: false })( ctx.req, ctx.res, (res) => { err = res; }, ); if (ctx.res.headersSent) { throw new STError({ message: 'RESPONSE_SENT', type: 'RESPONSE_SENT', }); } if (err) { throw err; } return true; } }
cyber.mantis
khanprog
{t: "2023-12-22T11:15:13.063Z", message: "middleware: Started", file: "/gateway/node_modules/supertokens-node/lib/build/supertokens.js:145:22" sdkVer: "16.6.5"} 2023-12-22T11:15:13.072Z com.supertokens {t: "2023-12-22T11:15:13.072Z", message: "middleware: Not handling because request path did not start with config path. Request path: /.well-known/jwks.json", file: "/gateway/node_modules/supertokens-node/lib/build/supertokens.js:152:26" sdkVer: "16.6.5"}
goodgravy
Alec Xiang
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).