Skip to content

Conversation

@przemyslawturek
Copy link

Description

Fix iOS token retrieval returning GIDToken object instead of string value.

Problem

On iOS, getTokens() returns native GIDToken objects instead of token strings, making the tokens unusable in JavaScript.

Solution

Use .tokenString property from GIDToken objects to extract actual token values.

Testing

  • Tested on iOS device iOS 16.7.12 and simulator iOS 17.5 also iOS 18.0
  • Verified tokens are now strings
  • Sign-in flow works correctly sending token to BE

Platforms affected

  • iOS
  • Android

On iOS, `getTokens()` returns native `GIDToken` objects instead of token strings, making the tokens unusable in JavaScript.
Use `.tokenString` property from `GIDToken` objects to extract actual token values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant