Invalid Token Bug
#42
Closed
opened 4 years ago by are0h
·
1 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
When the updates are pulled in from the repo, the site needs to restart to get a new token but there is currenlty no way for the user to logout and login to get a fresh token so they are stuck in a state where they are logged in but the API will not allow any admin actions because the current token is invalid.
There needs to be response for invalid tokens that will log the user out automatically so they can log in again for a new token.
So this issue only happened when I got rid of the two main themes and consolidated them, so it's probably better to add instructions in the docs to shut down the site before pulling in an update.
This should be a practice when updating the site anyway.