Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(google-signin): return tokenString instead of GIDToken object on iOS
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.
  • Loading branch information
przemyslawturek committed Nov 21, 2025
commit e6b62394fe157303108031c3ed6b3db296e7eb64
6 changes: 6 additions & 0 deletions packages/google-signin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.1.2 (2025-11-21)

### 🩹 Fixes
- **google-signin:** iOS getTokens return string token instead `GIDToken` object


## 2.1.1 (2025-03-03)

### 🚀 Features
Expand Down
4 changes: 2 additions & 2 deletions packages/google-signin/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export class GoogleSignin {
reject(GoogleError.fromNative(error));
} else {
resolve({
idToken: auth?.idToken,
accessToken: auth?.accessToken,
idToken: auth?.idToken.tokenString,
accessToken: auth?.accessToken.tokenString,
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/google-signin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/google-signin",
"version": "2.1.1",
"version": "2.1.2",
"description": "Google Sign-in for your NativeScript applications",
"main": "index",
"typings": "index.d.ts",
Expand Down