ember.js - Ember-Simple-Auth: Authenticated data not accessbile on didTransistion or AfterRender -


when attempting access authenticated information console.log(this.get('session.data.authenticated.useremail')) => undefined controller or route never seems work when off of events didtransition or afterrender. accessible on button click actions. there event i’m missing (like afterauth) token accessible? i’ve been stuck on weeks , have been avoiding it.

import ember 'ember';  export default ember.route.extend({   session: ember.inject.service('session'),    model() {       return this.store.createrecord('user');     },     actions{       didtransition: function (){        ember.run.schedule('afterrender', this, function () {              console.log(this.get('session.data.authenticated.useremail') //returns undefined (works fine off button clicks)           })        }     } }); 


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -