ruby on rails - How do I get the currently authenticated user with Ember simple auth? -
if user starts out in app unauthenticated , logs in, can have rails back-end homecoming user data, , create user model in ember app.
however, if user starts out in app authenticated? how can utilize session
fetch user's details rails?
i'm using ember-simple-auth-devise authenticator.
i able use
this.get('session.user_email')
in application route find authenticated user.
the improve way reopen session
object , add together property references authenticated user. see this illustration guides.
ruby-on-rails ember.js ember-simple-auth
No comments:
Post a Comment