Has anyone used supertokens with fastify . if yes ...
# community
y
Has anyone used supertokens with fastify . if yes can you please share some example on how to use it
n
Hi, what recipe are you trying to use?
y
Passwordless
I am able to Passwordless.createCode and generating code successfully But my code is not executing [createAndSendCustomTextMessage](https://github.com/supertokens/supertokens-auth-react/blob/2e50d0c5d98dffe45396a7ac7d0a002613a54ffc/examples/with-passwordless/api-server/index.js#L55)
@User
r
We have docs specific to fastify integration. But not an example app.
y
ok
can u point me to docs
n
You can follow the docs from here: https://supertokens.com/docs/passwordless/quick-setup/backend For the code snippets you can select the Fastify tab wherever its applicable
r
> But my code is not executing [createAndSendCustomTextMessage] @User so this is called when you call the API exposed via the backend SDK. That API also creates a session and everything. But this requires you to use our frontend SDKs. Since you are not using the frontend SDK, and are calling the
consumeCode
function yourself, you must take the resulting code, make a link and send that link to the user's email yourself.
2 Views