You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the authenticate flag on a route, when I am logged I see that everything works as expected if I reach the route through a link, while, if I enter the URL directly, it sends me to the login page, because here
if (next.authenticate && !Auth.isLoggedIn()) {
Auth.isLoggedIn() return false, as if the currentUser had not the "role" property set.
I cannot reproduce this error on the demo because it relies only on the server-side 401 to authenticate, without setting the "authenticate" flag on the restricted routes.
Thank you,
Matteo
The text was updated successfully, but these errors were encountered:
If I set the authenticate flag on a route, when I am logged I see that everything works as expected if I reach the route through a link, while, if I enter the URL directly, it sends me to the login page, because here
if (next.authenticate && !Auth.isLoggedIn()) {
Auth.isLoggedIn() return false, as if the currentUser had not the "role" property set.
I cannot reproduce this error on the demo because it relies only on the server-side 401 to authenticate, without setting the "authenticate" flag on the restricted routes.
Thank you,
Matteo
The text was updated successfully, but these errors were encountered: