jeudi 17 mai 2018

Redirect if already authenticated - ember simple auth

I have registration and login working for my Ember app but for some reason 'routeIfAlreadyAuthenticated' is not working currently. Here is my setup:

config/environment.js

'ember-simple-auth': {
  authenticationRoute: 'auth.login',
  routeIfAlreadyAuthenticated: 'rows',
  routeAfterAuthentication: 'rows'
}

But if I go to say /auth/login after I'm signed in it doesn't redirect me to the rows route. Does anybody know what I could be doing wrong?




Aucun commentaire:

Enregistrer un commentaire