heartsentwined/ember-auth — pull request #41 by seanrucker (2013-04-25 17:42:44+00:00)
Title: Moved the url authentication and remember me logic into the model hook.

I went ahead and moved the logic into the model hook as discussed. Seems to fix the issue. There is no need for the if Auth.authToken check as the model hook will only be called if the user is authenticated (for auth routes). In fact, routes like /posts/5 do not even need to define the model hook as the ember default behaviour will still be invoked. I.e. App.PostRoute = Auth.Route.extend(); is all that is needed to ensure the user is authenticated before the model is loaded.

Routes that do not use the model hook work as expected as well since the model hook is always called regardless of whether you need it or not.