ember-simple-auth
ember-simple-auth copied to clipboard
Best Authentication practice in case of seperate auth url
I have a scenario where on loading the ember app, if the session is not authenticated, i redirect to an authentication portal.
once authentication is completed there, we redirect back to the app.
this is handled using cookies.
But my concern is that
even if i add the authentication code to the beforeModel Hook of application route,
the app loads once, redirects to the session authentication, redirects back and loads again.
Hence 2 Loads
is there any way to avoid this and ensure that the full app gets loaded only if the session is authenticated?