hopinheimer
12/21/2023, 7:18 PM2023/12/21 19:16:37 [Recovery] 2023/12/21 - 19:16:37 panic recovered:
interface conversion: interface {} is nil, not map[string]interface {}
/usr/lib/golang/src/runtime/iface.go:262 (0x40cae9)
panicdottypeE: panic(&TypeAssertionError{iface, have, want, ""})
/home/ec2-user/go/pkg/mod/github.com/supertokens/supertokens-golang@v0.16.4/recipe/thirdparty/providers/oauth2_impl.go:177 (0xadb6d2)
oauth2_GetUserInfo: rawUserInfoFromProvider.FromUserInfoAPI = userInfoFromAccessToken.(map[string]interface{})
social login thirdpartyemailpassword any idea why this be happeningrp_st
12/22/2023, 5:20 AMrp_st
12/22/2023, 5:21 AMhopinheimer
12/22/2023, 7:06 AMrp_st
12/22/2023, 7:07 AMrp_st
12/22/2023, 7:07 AMhopinheimer
12/22/2023, 7:07 AMhopinheimer
12/22/2023, 7:07 AMhopinheimer
12/22/2023, 7:09 AMrp_st
12/22/2023, 7:09 AMrp_st
12/22/2023, 7:09 AMhopinheimer
12/22/2023, 7:09 AMgithub.com/supertokens/supertokens-golang v0.16.4
hopinheimer
12/22/2023, 7:09 AMrp_st
12/22/2023, 7:10 AMhopinheimer
12/22/2023, 7:12 AMrp_st
12/22/2023, 7:13 AMhopinheimer
12/22/2023, 7:14 AMhopinheimer
02/20/2024, 8:11 PMhopinheimer
02/20/2024, 8:11 PMhopinheimer
02/20/2024, 8:11 PMrp_st
02/21/2024, 5:13 AMrp_st
02/21/2024, 5:14 AMhopinheimer
02/21/2024, 5:16 AMrp_st
02/21/2024, 5:16 AMrp_st
02/21/2024, 5:16 AMhopinheimer
02/21/2024, 5:18 AMhopinheimer
02/21/2024, 5:30 AMhopinheimer
02/21/2024, 5:30 AMrp_st
02/21/2024, 5:30 AMsattvikc
02/21/2024, 5:31 AMhopinheimer
02/21/2024, 5:33 AMhopinheimer
02/21/2024, 5:33 AMhopinheimer
02/21/2024, 5:34 AMhopinheimer
02/21/2024, 5:35 AMsattvikc
02/21/2024, 5:35 AMhopinheimer
02/21/2024, 5:36 AMhopinheimer
02/21/2024, 5:36 AMhopinheimer
02/21/2024, 5:42 AM{
"redirectURIInfo": {
"redirectURIOnProviderDashboard": "",
"redirectURIQueryParams": {
"code": "4/0AeaYSHCdcxOIvwphmb_xw5Adq2DWZ2L4jPbC9tYfLyFUsZ8yaeUVpZpWoKGgyThEZ0lXaw"
},
"user": {
"email": "0xmartisan@gmail.com",
"familyName": null,
"givenName": "martisan",
"id": "106115034124511399621",
"name": "martisan",
"photo": "https://lh3.googleusercontent.com/a/ACg8ocKVLTEvHi9BHoyQm9J7rYa4jRCI4cHGXO9bCbrqOfza=s96-c"
}
},
"thirdPartyId": "google"
}
hopinheimer
02/21/2024, 5:42 AMsattvikc
02/21/2024, 5:43 AMsattvikc
02/21/2024, 5:43 AMredirectURIOnProviderDashboard
shouldn't be emptyhopinheimer
02/21/2024, 5:44 AMsattvikc
02/21/2024, 5:45 AMsattvikc
02/21/2024, 5:45 AMhopinheimer
02/21/2024, 5:51 AMhopinheimer
02/21/2024, 5:51 AMsattvikc
02/21/2024, 5:52 AMhopinheimer
02/21/2024, 5:58 AM{
"clientType": "web",
"redirectURIInfo": {
"redirectURIOnProviderDashboard": "https://auth.traferr-prod.com/auth/callback/google",
"redirectURIQueryParams": {
"code": "4/0AeaYSHBJTJvnQVelSk5Fe9PkeQ98ebi-Crv6MXn_Pab0lcOzNY1RAg1VH6veKIcRmd_gnQ"
}
},
"thirdPartyId": "google"
}
sattvikc
02/21/2024, 5:59 AM"clientType": "web",
since you have not set it in the backend confighopinheimer
02/21/2024, 6:00 AMhopinheimer
02/21/2024, 6:02 AMconst user = await GoogleSignin.signIn();
console.log('google signin user', user);
const requestBody = {
thirdPartyId: 'google',
redirectURIInfo: {
redirectURIOnProviderDashboard: 'https://auth.traferr-prod.com/auth/callback/google',
redirectURIQueryParams: {
code: user.serverAuthCode,
},
},
};
console.log('requestBody', requestBody);
const response = await fetch(BASE_URL_AUTH + '/auth/signinup', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
rid: 'thirdpartyemailpassword',
},
body: requestBody,
});
hopinheimer
02/21/2024, 6:02 AMsattvikc
02/21/2024, 6:03 AMconst user = await GoogleSignin.signIn();
?hopinheimer
02/21/2024, 6:04 AMsattvikc
02/21/2024, 6:04 AMhopinheimer
02/21/2024, 6:04 AMsattvikc
02/21/2024, 6:05 AMsattvikc
02/21/2024, 6:05 AMhopinheimer
02/21/2024, 6:06 AMsattvikc
02/21/2024, 6:23 AMhopinheimer
02/21/2024, 6:24 AMsattvikc
02/21/2024, 6:29 AMhopinheimer
02/21/2024, 7:06 AMsattvikc
02/21/2024, 7:15 AMhopinheimer
02/21/2024, 7:17 AMhopinheimer
02/21/2024, 7:17 AMhopinheimer
02/21/2024, 7:17 AMsattvikc
02/21/2024, 7:21 AMsattvikc
02/21/2024, 7:22 AMsattvikc
02/21/2024, 7:22 AMhopinheimer
02/21/2024, 7:23 AMsattvikc
02/21/2024, 7:24 AMhopinheimer
02/21/2024, 7:24 AMhopinheimer
02/21/2024, 7:25 AMsattvikc
02/21/2024, 7:32 AMhopinheimer
02/21/2024, 9:26 AMrp_st
02/21/2024, 9:28 AMrp_st
02/21/2024, 9:28 AM