I was working supertokens with React and Django rest framework. I have added super tokens for both r...
m
I was working supertokens with React and Django rest framework. I have added super tokens for both react and Django rest framework but I can't sign up or sign in. When I click sign up with Google it says "Something went wrong. Please try again.". And here is the error message : "GET /auth/authorisationurl?thirdPartyId=google&redirectURIOnProviderDashboard=http%3A%2F%2Flocalhost%3A3000%2Fcallback%2Fgoogle HTTP/1.1" 200 281. can you guys help me
r
hey @meseret_14335 which version of the frontend SDk are you using? Python works with supertokens-auth-react version ^0.33.0
m
@rp_st thank you for your reply. I'm using "supertokens-auth-react": "^0.34.1",
not working even with 0.33. it raises bind error
r
whats the bind error?
m
r
you also need to version ^0.6.0 for supertokens-web-js
on the frontend
m
ok. let me try it
ohh. Thank you bro. now it works. but I got this problem
r
what google oauth credentials are you using?
m
Oauth 2
I mean Google_client_id and Google secret key
r
yea. where did you get them from? Google dashboard?
m
yes.
r
whats the redirect uri that u configured?
m
on front end to 'dashboard'
r
please give me the URL
m
I use this one getRedirectionURL: async (context) => { if (context.action === "SUCCESS") { if (context.redirectToPath !== undefined) { // we are navigating back to where the user was before they authenticated return context.redirectToPath; } return "/dashboard"; } return undefined;
r
..
whats the redirect url on google dashboard?
m
ohh
did it work with localhost redirect?
r
you need to put localhost/auth/callback/google
please see our guides in more detail.
m
ok
I read all your docs btw.
But I coudn't get this one
r
it's in the backend quick setup
m
ok
Thank you very much
hey @rp_st
5 Views