Skip to content

Commit 9fd0865

Browse files
committed
update README
1 parent 9a2fc04 commit 9fd0865

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

317327
To sign the current user out, use the `signOut()` method. It accepts no parameters

ios/Firestack/Firestack.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)