BUG: Fix token path (#23)
This commit is contained in:
parent
55a1c4fca6
commit
8309486a8a
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ const { isEmpty, get } = Ember;
|
|||
|
||||
export default BaseAuthorizer.extend({
|
||||
authorize(data, block) {
|
||||
const accessToken = get(data, 'data.token');
|
||||
const accessToken = get(data, 'data.attributes.auth-token');
|
||||
if (!isEmpty(accessToken)) {
|
||||
block('Authorization', `Token ${accessToken}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue