Skip to content

Commit

Permalink
fix(ios): get tokes would return null (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed May 24, 2023
1 parent d3bb766 commit 84255df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ isSignedIn = async () => {

#### `getCurrentUser()`

This method resolves with `null` or `userInfo` object of the currently signed-in user. The call never rejects and in the native layer, this is a synchronous call. Note that on Android, `accessToken` is always `null` in the response.
This method resolves with `null` or `userInfo` object of the currently signed-in user. The call never rejects and in the native layer, this is a synchronous call.

```js
getCurrentUser = async () => {
Expand Down
4 changes: 2 additions & 2 deletions ios/RNGoogleSignin.m
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ + (BOOL)requiresMainQueueSetup
} else {
if (user) {
resolve(@{
@"idToken" : user.idToken,
@"accessToken" : user.accessToken,
@"idToken" : user.idToken.tokenString,
@"accessToken" : user.accessToken.tokenString,
});
} else {
reject(@"getTokens", @"user was null", nil);
Expand Down

0 comments on commit 84255df

Please sign in to comment.