https://supertokens.com/
Join Discord
Solved on my own 🥳 Hi there! I'm working with the `supertokens-node` SDK and a Fastify Mercurius ...
a

arimgibson

almost 2 years ago
Solved on my own 🥳 Hi there! I'm working with the
supertokens-node
SDK and a Fastify Mercurius GraphQL server. Having issues getting our context setup and would love some help. I'm using a request from Postman that has the correct
st-access-token
header set, and have my context setup exactly how recommended in the docs. However, the session always returns undefined https://supertokens.com/docs/thirdpartypasswordless/graphql-integration/backend-setup Sorry for not much initial information... lemme know what's helpful and happy to provide anything I can :)
a
  • 1
  • 4
  • 34
ERROR [ExceptionsHandler] Received response with status 401 and body
n

nik2208

almost 2 years ago
ERROR [ExceptionsHandler] Received response with status 401 and body
n
r
  • 2
  • 37
  • 34
Hello <@498057949541826571> I am using python flask backend and on clicking on reset password the a...
t

Tushar

almost 2 years ago
Hello @rp_st I am using python flask backend and on clicking on reset password the api gives 200 respond but I am not able to receive email . AFAIK from the documents even if I don't add any smtp configurations I should still get an email from supertokens domain or I am missing sth here ?
t
r
  • 2
  • 15
  • 34
Hi! I'm trying to implement UserRoles in my nextjs app and I'm getting ```Initialisation not done. ...
f

fatih.55

about 2 years ago
Hi! I'm trying to implement UserRoles in my nextjs app and I'm getting
Initialisation not done. Did you forget to call the UserRoles.init or SuperTokens.init functions?
when I try to create a role. Does anyone have an idea what I could be doing wrong?
f
n
  • 2
  • 22
  • 34
Hey guys, which functions would i have to mock out (via jest) to write an integration test for a use...
e

Erick

about 2 years ago
Hey guys, which functions would i have to mock out (via jest) to write an integration test for a user signing in -> to unverified email. I use the SessionAuth component, so some pointers would be great. (This component seems to be the one handling the redirection, but unsure of which functions to mock out from super tokens to make the component believe i'm an unverified logged in user)
e
r
p
  • 3
  • 4
  • 34
Sorry another question regarding the Passwordless recipe: I'm trying to use signInUp in the createC...
m

masterofpoupette

about 2 years ago
Sorry another question regarding the Passwordless recipe: I'm trying to use signInUp in the createCode function override in order to create my user earlier, but it kind of hang/freeze the function. Any idea? Thanks.
m
r
  • 2
  • 22
  • 34
Hey! I'm integrating supertoken on my go-fiber backend but I can't seem to install supertokens when ...
k

keezy2147

over 2 years ago
Hey! I'm integrating supertoken on my go-fiber backend but I can't seem to install supertokens when I run go mod tidy. It always gets stuck at
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
k
s
  • 2
  • 3
  • 34
Hi, can I send SMS using API, to a phone number that is not saved in the SuperTokens user management...
d

der_suchende

over 2 years ago
Hi, can I send SMS using API, to a phone number that is not saved in the SuperTokens user management database? Thanks
d
r
  • 2
  • 3
  • 34
Hi, Anyone know why when I implement the `getUserById` in `nestjs`, it return me ```shell [Nest] 12...
c

clean9326

over 2 years ago
Hi, Anyone know why when I implement the
getUserById
in
nestjs
, it return me
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)
my code is like:
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;
  }
}
c
r
  • 2
  • 12
  • 34
Hi! I was interested in using Supertokens for a side project. Right now, my strategy is to use the p...
m

mathewpregasen9889

almost 3 years ago
Hi! I was interested in using Supertokens for a side project. Right now, my strategy is to use the pre-built UI to accelerate setting up the app and then switch to a custom auth UI down the road. Is this an easy switch to make?
m
r
s
  • 3
  • 4
  • 34
Previous242526Next

SuperTokens.com

SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).

Powered by