https://supertokens.com/ logo
callback auth url
k

kumkee

04/01/2023, 9:07 PM
In your guide https://supertokens.com/docs/thirdpartyemailpassword/custom-ui/thirdparty-login, it mentions
authorisationURL: "http://localhost:3000/auth/callback/google"
. Does it actually means
authorisationURL: website_domain + "/callback/google",
?
r

rp

04/02/2023, 5:56 AM
Yes, in the context of the guide,
authorisationURL: "http://localhost:3000/auth/callback/google"
means that you should replace
http://localhost:3000
with your own website domain. So it would be
authorisationURL: websiteDomain + websiteBasePath + "/callback/google"
. This is where the authorization code will be sent back to after the user logs in with their Google account. You should replace
google
with the name of the provider you are using for third-party login. For example, if you are using Facebook, it would be
authorisationURL: websiteDomain + websiteBasePath + "/callback/facebook"
.
k

kumkee

04/03/2023, 6:12 PM
Thank you. Should you update your guide to reflect this? You don't have such a problem in other parts of the guide.
r

rp

04/03/2023, 7:08 PM
the value in the url is dynamically injected in the docs based on what you fill into the app info form
ah i see. Thanks for pointing this out then! We shall fix it