plugins icon indicating copy to clipboard operation
plugins copied to clipboard

fix(google-signin): return tokenString instead of GIDToken object on iOS

Open przemyslawturek opened this issue 2 months ago • 0 comments

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

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

Platforms affected

  • [x] iOS
  • [ ] Android

przemyslawturek avatar Nov 21 '25 10:11 przemyslawturek