Skip to content

Commit 2add02b

Browse files
authored
Merge pull request #233 from moooji/fix/getToken
[v3] Fix getToken to return JWT token instead of user
2 parents d69ac57 + 0783f9b commit 2add02b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/Firestack/FirestackAuth.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ @implementation FirestackAuth
314314
if (error) {
315315
[self userErrorCallback:callback error:error user:user msg:@"getTokenError"];
316316
} else {
317-
[self userCallback:callback user:user];
317+
callback(@[[NSNull null], token]);
318318
}
319319
}];
320320
} else {
@@ -331,7 +331,7 @@ @implementation FirestackAuth
331331
if (error) {
332332
[self userErrorCallback:callback error:error user:user msg:@"getTokenWithCompletion"];
333333
} else {
334-
[self userCallback:callback user:user];
334+
callback(@[[NSNull null], token]);
335335
}
336336
}];
337337
} else {

0 commit comments

Comments
 (0)