Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
getIdToken use actual refresh value instead of checking if object exists
  • Loading branch information
AlexZaiats committed Nov 8, 2019
commit 3198736120b0f7a478346ea419e828f93c62615d
4 changes: 4 additions & 0 deletions packages/firebase_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

## 0.14.0+7

<<<<<<< HEAD
* Remove AndroidX warning.
=======
* Do not ignore "refresh" value for "getIdToken" on iOS
>>>>>>> getIdToken use actual refresh value instead of checking if object exists

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

## 0.14.0+6

Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
}
} else if ([@"getIdToken" isEqualToString:call.method]) {
NSDictionary *args = call.arguments;
BOOL refresh = [args objectForKey:@"refresh"];
BOOL refresh = [[args objectForKey:@"refresh"] boolValue];
[[self getAuth:call.arguments].currentUser
getIDTokenResultForcingRefresh:refresh
completion:^(FIRAuthTokenResult *_Nullable tokenResult,
Expand Down