Skip to content

Commit 3198736

Browse files
committed
getIdToken use actual refresh value instead of checking if object exists
1 parent 33e0586 commit 3198736

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/firebase_auth/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
## 0.14.0+7
66

7+
<<<<<<< HEAD
78
* Remove AndroidX warning.
9+
=======
10+
* Do not ignore "refresh" value for "getIdToken" on iOS
11+
>>>>>>> getIdToken use actual refresh value instead of checking if object exists
812
913
## 0.14.0+6
1014

packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
205205
}
206206
} else if ([@"getIdToken" isEqualToString:call.method]) {
207207
NSDictionary *args = call.arguments;
208-
BOOL refresh = [args objectForKey:@"refresh"];
208+
BOOL refresh = [[args objectForKey:@"refresh"] boolValue];
209209
[[self getAuth:call.arguments].currentUser
210210
getIDTokenResultForcingRefresh:refresh
211211
completion:^(FIRAuthTokenResult *_Nullable tokenResult,

0 commit comments

Comments
 (0)