https://supertokens.com/ logo
Title
f

Frantz

11/28/2022, 2:56 AM
How do you integrate sign in with google for web with super tokens?
r

rp

11/28/2022, 4:14 AM
Hey @Frantz
f

Frantz

11/28/2022, 4:14 AM
Hello
r

rp

11/28/2022, 4:14 AM
Did you follow our guides?
f

Frantz

11/28/2022, 4:15 AM
I did, but I dont think there is a guide for working with sign in with google for web
If so can you provide link
I will work on it now
r

rp

11/28/2022, 4:15 AM
There is. Which recipe are you using?
f

Frantz

11/28/2022, 4:15 AM
thirdpartyemail
r

rp

11/28/2022, 4:15 AM
Do you want with pre built ui or custom Ui?
f

Frantz

11/28/2022, 4:15 AM
custom
f

Frantz

11/28/2022, 4:16 AM
r

rp

11/28/2022, 4:17 AM
Oh right. We don’t have that style login with google. We have the full redirect method
f

Frantz

11/28/2022, 4:17 AM
Yes, is there any manual implementation that I can do to override the callback page?
r

rp

11/28/2022, 4:18 AM
Hmm. There should be. But I’m not familiar with how google allows this style of login.
But I think it should be possible.
Maybe you could open an issue about this on our GitHub, and when we get time, we can have a look.
f

Frantz

11/28/2022, 4:19 AM
It calls the call back page but I get an error when it lands on that page
r

rp

11/28/2022, 4:19 AM
What’s the error?
f

Frantz

11/28/2022, 4:19 AM
nothing specific
r

rp

11/28/2022, 4:20 AM
Is it an error from the signinup api call?
f

Frantz

11/28/2022, 4:20 AM
let me check
1 sec
there is no error type or message 😦
r

rp

11/28/2022, 4:24 AM
What’s the status code of the api call?
f

Frantz

11/28/2022, 4:40 AM
I am cant see the api call anymore
not sure why 😦
ok I got it to work again
r

rp

11/28/2022, 4:45 AM
Hmm. And?
f

Frantz

11/28/2022, 1:33 PM
I dont see any api request that happen when it lands on the google callback page
r

rp

11/28/2022, 1:33 PM
do you call the signInAndUp function when that page loads?
f

Frantz

11/28/2022, 8:25 PM
yes, I am calling thirdPartySignInAndUp
what does thirdPartySignInAndUp do
r

rp

11/29/2022, 5:45 AM
it verifies the state and takes the
code
query param and calls the signinup API on the backend, which exchanges the code + secret for the access token and then creates or logs in the user in supertokens