Skip to content

Commit 1d065d1

Browse files
committed
Do not ignore refresh value for getIdToken
1 parent 14c97ac commit 1d065d1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/firebase_auth/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.14.0+7
2+
3+
* Do not ignore "refresh" value for "getIdToken" on iOS
4+
15
## 0.14.0+6
26

37
* Update example app with correct const constructors.

packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m

+1-1
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,

packages/firebase_auth/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS
44
like Google, Facebook and Twitter.
55
author: Flutter Team <[email protected]>
66
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth
7-
version: 0.14.0+6
7+
version: 0.14.0+7
88

99
flutter:
1010
plugin:

0 commit comments

Comments
 (0)