Skip to content

Commit

Permalink
getAuthToken method
Browse files Browse the repository at this point in the history
I need get auth token in my project and think add this function good idea, because i dont find any good solution without use AsyncStorage directly from react-native.
  • Loading branch information
noris666 authored Sep 6, 2016
1 parent d50a9ee commit 8c02408
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ module.exports = {
this._endLoggingIn();
}
},
getAuthToken() {
return Data._tokenIdSaved;
},
async _loadInitialUser() {
var value = null;
try {
Expand Down

0 comments on commit 8c02408

Please sign in to comment.