https://supertokens.com/ logo
#community
Title
# community
y

yyogeshwar

04/05/2022, 9:06 AM
Has anyone used supertokens with fastify . if yes can you please share some example on how to use it
n

nkshah2

04/05/2022, 10:20 AM
Hi, what recipe are you trying to use?
y

yyogeshwar

04/05/2022, 10:36 AM
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

rp

04/05/2022, 10:43 AM
We have docs specific to fastify integration. But not an example app.
y

yyogeshwar

04/05/2022, 10:43 AM
ok
can u point me to docs
n

nkshah2

04/05/2022, 10:48 AM
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

rp

04/05/2022, 5:46 PM
> 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