13 lines
322 B
JavaScript
13 lines
322 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Route.extend({
|
|
session: Ember.inject.service('session'),
|
|
|
|
beforeModel: function(transition) {
|
|
this._super(transition);
|
|
|
|
let token = Ember.get(transition, 'queryParams.token');
|
|
this.get('session').authenticate('authenticator:jwt-resolved', token);
|
|
},
|
|
|
|
});
|