File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,16 @@ firestack.deleteUser()
312312.catch (err => console .error (' There was an error - Now you are trapped!' ))
313313```
314314
315+ #### getToken()
316+
317+ If you want user's token, use ` getToken() ` method.
318+
319+ ``` javascript
320+ firestack .getToken ()
321+ .then (res => console .log (res .token ))
322+ .catch (err => console .error (' error' ))
323+ ```
324+
315325#### signOut()
316326
317327To sign the current user out, use the ` signOut() ` method. It accepts no parameters
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ @implementation Firestack
338338 withUser: user];
339339 callback (@[err]);
340340 } else {
341- callback (@[[NSNull null ], @{@" result " : token}]);
341+ callback (@[[NSNull null ], @{@" token " : token}]);
342342 }
343343 }];
344344}
You can’t perform that action at this time.
0 commit comments