elmsln / haxcms-user-flow

user flow
Other
0 stars 1 forks source link

JWT either getting fragged on leaving page or rebuilds really quickly #81

Closed btopro closed 2 years ago

btopro commented 2 years ago

Guessing it's a state / timing issue but we get logged out by the JWT expiring very rapidly. May also be a case of needing to implement the timing token logic that the jwt-login tag was put in place to help with but has yet to be wired up

btopro commented 2 years ago

jwt sets, but then recall appears to have a condition or timing issue. May need to reroute all logic into the store for jwt with the source of truth being localStorage and the login call being the only thing that sets localStorage.