Closed ramsestom closed 8 years ago
feathers-localstorage is a service wrapper for Async- or Localstorage and not used in the authentication module (anymore). Are you getting any errors using
const app = feathers()
.configure(socketio(socket))
.configure(hooks())
// Use AsyncStorage to store our login toke
.configure(authentication({
storage: AsyncStorage
}));
How are you using this setup?
No I don't get any error using this. But it doesn't seem to work anymore as the authentication is not stored (I have to re-authenticate each time I restart the app whereas with previous version of react native it was working as expected and the authentication token was correctly stored)
EDIT:I traced back the error and it was a wrong routing in my app (forgot to change the name of an action). So the authentication AsyncStorage is working as expected. Sorry
Hi
How could I use AsyncStorage with the feathersjs authentication service on react-native. I used to do:
but it doesn't work anymore with RN 0.30 and latest feathers client api
I tried
but it doesn't work either (return an error: _this2.app.authenticate is not a function)