Open giano opened 7 years ago
You have to do return feathers.authenticate().catch(function() {})
in the beforeModel
hook of your application route, feathers
being the injected service with feathers: Ember.inject.service()
.
This will try to find the token and login with it if there is one.
Ok, thanks! Nice library. Actually went all way around JSON-APIfying Feathers (would like to have records paginated) but would like to keep up with this.
Have a nice day!
The library seems to "forget" the auth token association when I reload the page, even if the correct value is in localStorage.
Models requests are okay since I reload (even if I can't find any Authorization header in the websocket connection or its frames).