Ember-simple-auth: Can't access to the stored token in a session

Created on 23 Jun 2016  路  1Comment  路  Source: simplabs/ember-simple-auth

How can I get the stored token in my session?

I need to get it to add it to the Authorization header inside my adapter, but I can't do console.log(this.get('session.content.secure.token'));

question

Most helpful comment

Assuming you're using ESA 1.0 or later you can do console.log(this.get('session.data.authenticated.token'));.

Please use stackoverflow.com for questions and github only for issues.

>All comments

Assuming you're using ESA 1.0 or later you can do console.log(this.get('session.data.authenticated.token'));.

Please use stackoverflow.com for questions and github only for issues.

Was this page helpful?
0 / 5 - 0 ratings