me_abhii
01/21/2023, 1:16 PMrp_st
01/21/2023, 1:17 PMrp_st
01/21/2023, 1:17 PMme_abhii
01/21/2023, 1:17 PMsattvikc
01/23/2023, 5:01 AMme_abhii
01/23/2023, 5:17 AMsattvikc
01/23/2023, 5:17 AMsattvikc
01/23/2023, 6:46 AMrp_st
01/23/2023, 6:47 AMme_abhii
01/23/2023, 7:18 AMsattvikc
01/23/2023, 7:22 AMrp_st
01/23/2023, 7:22 AMsattvikc
01/23/2023, 7:23 AMsattvikc
01/23/2023, 8:37 AMsattvikc
01/23/2023, 8:38 AMsattvikc
01/23/2023, 8:40 AMts
const onSignIn = async function(response: any) {
try {
const result = await axios.post('http://localhost:3001/auth/signinup', {
thirdPartyId: "google",
redirectURI: "http://localhost:3000",
authCodeResponse: {
access_token: 'use-id-token',
id_token: response.credential,
}
})
// Successful login ...
} catch (err) {
// handle error
}
}
sattvikc
01/23/2023, 8:41 AM