aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Auth/Source/FIRUser.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firebase/Auth/Source/FIRUser.m')
-rw-r--r--Firebase/Auth/Source/FIRUser.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Firebase/Auth/Source/FIRUser.m b/Firebase/Auth/Source/FIRUser.m
index 013a13f..8dc5739 100644
--- a/Firebase/Auth/Source/FIRUser.m
+++ b/Firebase/Auth/Source/FIRUser.m
@@ -843,7 +843,7 @@ static void callInMainThreadWithAuthDataResultAndError(
"error" out parameter.
*/
- (FIRAuthTokenResult *)parseIDToken:(NSString *)token error:(NSError **)error {
- error = nil;
+ *error = nil;
NSArray *tokenStringArray = [token componentsSeparatedByString:@"."];
// The token payload is always the second index of the array.
NSMutableString *tokenPayload = [[NSMutableString alloc] initWithString:tokenStringArray[1]];
@@ -863,7 +863,7 @@ static void callInMainThreadWithAuthDataResultAndError(
[NSJSONSerialization JSONObjectWithData:decodedTokenPayloadData
options:NSJSONReadingMutableContainers|NSJSONReadingAllowFragments
error:error];
- if (error) {
+ if (*error) {
return nil;
}