Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token is undefined for authenticated user #500

knappdev opened this Issue May 8, 2017 · 3 comments


None yet
3 participants
Copy link

knappdev commented May 8, 2017

Steps to reproduce

Configure the client:
export const restApp = feathers()
storage: AsyncStorage,

Fetch access token using:
const token = restApp.get('accessToken');
(User is already authenticated in this case)

token undefined

But if fetched with some delay then the valid token will be returned

Expected behavior

Token should be available after configuring the feathers client

Actual behavior

Token is null

Module versions (especially the part that's not working):
"feathers": "^2.1.1",
"feathers-authentication-client": "^0.3.1",
"feathers-errors": "^2.7.1",
"feathers-hooks": "^2.0.1",
"feathers-rest": "^1.7.2",
"feathers-socketio": "^1.6.0",

React Native Version:
"react-native": "0.43.4",


This comment has been minimized.

Copy link

knappdev commented May 8, 2017

Same issue in "react-native": "0.44.0"

@daffl daffl referenced this issue May 9, 2017


Token is undefined #569


This comment has been minimized.

Copy link

daffl commented May 9, 2017


This comment has been minimized.

Copy link

ekryski commented Jul 24, 2017

@knappdev we use React Native a lot with Feathers and are able to authenticate and grab the access token no problem. Any chance you could kick up a simple reproducable example repo? It would make it much easier/faster for us to assess what is going on. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.