I am working on a plugin that makes REST calls from with a web panel plugin. When my user session expires (after taking an extended coffee break) when i use any functionality in the plugin that I have developed the REST calls dont succeed (as expected) since the user is now unauthorized.
I can detect the 401 unauthorized response via ajax and redirect to the login page manually but I feel there should be a more "baked in" way of doing this that I might be missing.
Anyone know of anything available in the APIs?
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.