mardi 5 juillet 2016

How to get details about the current authenticated user in ember-simple-auth?

I want to know how can I get the information about the current user in Ember. I'm using ember-simple-auth.

I followed this answer but couldn't access this.get('session.user_email').

However, if I do the following in my application.js route:

export default Ember.Route.extend(ApplicationRouteMixin, {
  model() {
    console.log(this.get('session'));
  }
});

I get the following response:

enter image description here

Here is the link to the repo: http://ift.tt/1Xv7Dye.




Aucun commentaire:

Enregistrer un commentaire