Marionette.js with Rails (Devise) Authentication

前端 未结 1 1091
误落风尘
误落风尘 2021-01-20 18:10

Curious as to how people usually handle this. My strategy is to have an authorized root route and unauthorized root route.

The authorized users get sent directly to

相关标签:
1条回答
  • 2021-01-20 18:42

    I find it painful and unnecessary to try and make Backbone/Marionette handle the authentication and re-loading of the authorized site stuff. Once they log in, redirect them to a different URL that the server handles, and have the server send down all the stuff that they need, as an authenticated user.

    0 讨论(0)
提交回复
热议问题