What is the appropriate way to check if the user still loggedin?
I need to change the screen once the user is disconnected. how often can I check that?
yes. in the website, I want to check when the page loads if the user is loggedin or not. or maybe you think of an alternative for that (its a single page app based on angular).
yes. in the website, I want to check when the page loads if the user is loggedin or not. or maybe you think of an alternative for that (its a single page app based on angular).
The best practice is not to check it explicitly but instead implement reaction on unauthorized response (When using expired token REST API returns 401 Unauthorized).
If you really need explicit check then you can expose some service method or implement it via custom controller