Skip to content
Discussion options

You must be logged in to vote

Hello @Daniel-Fei, thanks for reaching out. Packing three issues in one post makes each individual solution hard to track. I'll try my best to answer them in one sweep but try separate issues in the future.

1: due to the Router you can remove the AuthMiddleware (which normally checks the permissions). You need to do so inside the router class. This is something we should implement in the upcoming SPA API in #2811.
2: this also should be implemented in the Router.
3: Yes. You can start a timer when the user logs in; or even better: for each user remember an timestamp for "last activity" and then have one timer to check if an app.storage.user is "out of time". You can then simply set authen…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Daniel-Fei
Comment options

@rodja
Comment options

rodja May 4, 2024
Maintainer

@Daniel-Fei
Comment options

Answer selected by Daniel-Fei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants