From 8c0240849d8d397053b43737fa76e9e1329f8bea Mon Sep 17 00:00:00 2001 From: Georgiy Trokovets Date: Wed, 7 Sep 2016 01:44:53 +0600 Subject: [PATCH] getAuthToken method 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. --- src/user/User.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/user/User.js b/src/user/User.js index cc15442..40e2be3 100644 --- a/src/user/User.js +++ b/src/user/User.js @@ -108,6 +108,9 @@ module.exports = { this._endLoggingIn(); } }, + getAuthToken() { + return Data._tokenIdSaved; + }, async _loadInitialUser() { var value = null; try {