Abhi
01/21/2023, 1:16 PMrp
01/21/2023, 1:17 PMAbhi
01/21/2023, 1:17 PMsattvikc
01/23/2023, 5:01 AMAbhi
01/23/2023, 5:17 AMsattvikc
01/23/2023, 5:17 AMrp
01/23/2023, 6:47 AMAbhi
01/23/2023, 7:18 AMsattvikc
01/23/2023, 7:22 AMrp
01/23/2023, 7:22 AMsattvikc
01/23/2023, 7:23 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
}
}