Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Ember simple auth 1.0. custom authenticator

$
0
0

@navneet35371 wrote:

There is one problem,

I want to set the routeIfAlreadyAuthenticated route in environment as the route with dynamic segment(/:userid/dashboard) which is based on the logged-in user.

How can i do that?

//config/environment.js
  ENV['ember-simple-auth'] = {
    authorizer: 'authorizer:custom',

    routeAfterAuthentication: '/dashboard',
    routeIfAlreadyAuthenticated: '/dashboard'
  };

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles