Join Discord
Powered by
<@!816691114488496128> I have added an example set...
# support-questions-legacy
r
rp_st
03/05/2021, 9:39 AM
@User
I have added an example setup with netlify:
https://github.com/supertokens/supertokens-auth-react/tree/master/examples/with-netlify
- See the frontend configs here:
https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-netlify/src/App.tsx#L19
- See the backend config here:
https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-netlify/netlify/functions/api.js#L14
- Also I have used "serverless-http" and for making the serverless app work with express. I also needed to use body-parser as seen here:
https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-netlify/netlify/functions/api.js#L11
- You can see how session verification (on the backend) works here:
https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-netlify/netlify/functions/api.js#L32
Previous
Next