ember.js - User authentication and login flow with Ember and JSON web tokens -


i'm trying figure out how best authentication , login flow ember. i'll add first web app i've built it's bit new me.

i have express.js backend protected endpoints using jwts (i'm using passport, express-jwt , jsonwebtoken that) , works.

on client-side, i'm using ember simple auth jwt authenticator. have login flow working (i'm using login-controller-mixin) , correctly see isauthenticated flag in inspector after successful login.

the thing i'm struggling after login: once user logs in , gets token, should make subsequent call user details, e.g. /me, can have representative user model client side? these details let me transition appropriate route.

see this example in repo example of how add property session provides access current user.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -