use correct aud value when verifying google token from android

This commit is contained in:
Satindar Dhillon 2022-08-23 09:26:47 -07:00
parent 057ad67f76
commit ba1c9c970b

View file

@ -72,7 +72,7 @@ export async function decodeGoogleToken(
const loginTicket = await googleMobileClient.verifyIdToken({
idToken,
audience: isAndroid ? webClientId : iosClientId,
audience: isAndroid ? env.google.auth.androidClientId : iosClientId,
})
const email = loginTicket.getPayload()?.email