You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
@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. 😄
Steps to reproduce
Configure the client:
export const restApp = feathers()
.configure(rest(host).superagent(superagent))
.configure(hooks())
.configure(authentication({
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",
The text was updated successfully, but these errors were encountered: