Quantcast
Viewing all articles
Browse latest Browse all 4829

HOWTO access `currentUser` within the `model()` hook with ember-simple-auth?

@johnnyicon wrote:

I am using ember-simple-auth as my authentication library.

I have a situation where I need to access the currentUser‘s ID to retrieve a record in the model() hook of a route handler. However, from what I understand, I’m not able to access the session service because it is injected into the controller, not into the route handler.

Is there a way to actually do this?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles