https://supertokens.com/ logo
d

DlyaSeba365

03/24/2022, 2:40 PM
I get error - Please call the supertokens.init function before using SuperTokens even if I call this function with all required arguments. Does anybody have idea why this would happen?
r

rp

03/24/2022, 3:50 PM
Which function are you trying to call?
d

DlyaSeba365

03/24/2022, 3:57 PM
supertokens.init()
r

rp

03/24/2022, 3:58 PM
Huh.. so is that all you call? Are you sure?
Do you use any other imports from our lib?
d

DlyaSeba365

03/24/2022, 3:59 PM
r

rp

03/24/2022, 4:00 PM
If you can share your code, we can have a look
d

DlyaSeba365

03/24/2022, 4:00 PM
But after the second step it keeps saying that https://supertokens.com/docs/passwordless/quick-setup/backend
Currently, I try to do it other way
I decided to move SP related logic in separate repo from Sapper
But as I try to use SP with Fastify I also face a bunch of errors
Is there any example repo of SuperTokens integrated in Fastify server?
r

rp

03/24/2022, 4:45 PM
@User we don't have an example of supertokens + fastify. But the docs code snippets should work. If you can upload your code to github and share that, it would help
4 Views