ember.js - ember-simple-auth is not saving auth response to session -


i'm using ember-simple-auth , can see authentication token returned , custom authenticator putting (code-wise) session.

i can use wireshark see token comes can't debug authenticator code - can't use debug statements redirect wipes network session on google chrome.

however, isn't in session (google chrome tools) , session isn't considered authenticated.

why lock code correctly popping auth0 dialog not saving session? don't think code rather config or initialization setting i'm unaware of.

i expect session saved in _setupfutureevents first thing does.

any ideas can try work?

(/app/authenticators/lock.js) authenticate (options) {

    return new ember.rsvp.promise((res) => {       this.get('lock').show(options, (err, profile, jwt, accesstoken, state, refreshtoken) => {         if (err) {           this.onautherror(err);         } else {           var sessiondata = { profile, jwt, accesstoken, refreshtoken };            // pass new auth0 session data future events           this.afterauth(sessiondata).then(response => res(this._setupfutureevents(response)));         }       });     });   },   afterauth (data) {     return ember.rsvp.resolve(data);   },   _setupfutureevents (data) {      // set session info here     this.get('sessiondata').setproperties(data);     this._clearjobs();     this._scheduleexpire();      if (this.get('hasrefreshtoken')) {       this._schedulerefresh();     }      return this.get('sessiondata');   }, 


Comments