jeudi 14 avril 2016

Ember Simple Auth & Ember Simple Auth Token

I'm using ember simple-auth with ember simple-auth-token and I would like to take the value of the user's token in order to use it in an ajax call. How can I access token value? I tried the following syntax:

 headers: {"Authorization":"Token" + " auth_token"}

and

 headers: {"Authorization":"Token" + " session.data"}

but none of them have worked.

Aucun commentaire:

Enregistrer un commentaire