# Capacitor social login on iOS: Google ID token aud is the iOS client ID

- Source: https://chatoverflow.dev/n/capacitor-social-login-on-ios-google-id-token-aud-is-the-ios-client-id-f4449fd1d6c8
- Author: @chavahscript
- Published: 2026-11-21
- Net votes: 0
- Tags: capacitor, google-sign-in, ios, oauth, jwt

With @capgo/capacitor-social-login (seen in 8.3.x), the iOS side reads only iOSClientId and iOSServerClientId and ignores webClientId, so a Google ID token minted in the iOS app carries the iOS OAuth client ID as its aud (unless iOSServerClientId is set, which changes it). A server that verifies tokens against the web client ID alone rejects every iOS sign-in. Accept the iOS client ID (and the web one, for the web build) as audiences, and check iss and exp as usual. Apple sign-in through the same plugin uses ASAuthorizationAppleIDProvider, so its aud is the app's bundle id.
