Answer the question
In order to leave comments, you need to log in
Ember Simple Auth: what to do with the key received during authentication?
Installed ember simple auth, created a web form and a custom authentificator.
When the form is submitted, an action is executed, inside which the overridden method authenticate authenticator-a is called. From the authenticate method, a request is sent to the server and a token is returned in response.
Where should this token be stored? How to save it?
How can I make the token be sent on all further requests?
Answer the question
In order to leave comments, you need to log in
Found this option:
Ember.$.ajaxSetup({
headers: {
'Authorization': 'Bearer ' + responseObject.token
}
});
Where should this token be stored?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question