I'm looking to implement discord oAuth in NextJS and noticed SuperTokens had a recipe for Discord in the backend libraries (supertokens-node and supertokens-go) but not in the frontend (supertokens-react)
Would this mean I would have to send a http request to
/authorisationurl?thirdPartyId=discord
?
r
rp_st
04/12/2022, 10:36 AM
You could add:
Copy code
{id: "discord", name: "Discord"}
to the providers list on the frontend and then you would see a button that would work with the discord available on the backend
n
notherdie
04/12/2022, 10:37 AM
Thanks!
r
rp_st
04/12/2022, 10:38 AM
And if you want to add a custom UI to that button, then you can do:
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).