Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token doesn't refresh in Admin App #8947

Closed
3 tasks done
m-bymike opened this issue Oct 19, 2021 · 3 comments
Closed
3 tasks done

Token doesn't refresh in Admin App #8947

m-bymike opened this issue Oct 19, 2021 · 3 comments
Labels

Comments

@m-bymike
Copy link

Preflight Checklist

Describe the Bug

When keeping the app open in a browser tab longer after the token expires, the app doesn't refresh the token automatically and fails to load any data. After a reload everything is ok.

Screenshot 2021-10-19 at 20 11 11

To Reproduce

Open the admin app in a browser and log in. Wait until the token expires. Navigate to a collection or try to open an item. The 'Token expired' message will appear.

Errors Shown

Details copied from error dialog:

{
  "errors": [
    {
      "message": "Token expired.",
      "extensions": {
        "code": "INVALID_CREDENTIALS"
      }
    }
  ]
}

What version of Directus are you using?

v9.0.0-rc.98

What version of Node.js are you using?

v14.17.5

What database are you using?

MySQL 8.0.26

What browser are you using?

Chrome 94.0.4606.81

What operating system are you using?

macOS (Client), Ubuntu (Server)

How are you deploying Directus?

Native on server, as described here: https://docs.directus.io/guides/installation/ubuntu/#ubuntu

@rijkvanzanten
Copy link
Member

Fixed in #8880

@m-bymike
Copy link
Author

I updated today, this is a new problem. My previous version was v9.0.0-rc.95, so it looks like it was introduced somewhen after rc.95...

@rijkvanzanten
Copy link
Member

Yup that's correct, and was fixed subsequently and will be released in 99 🙂

@rijkvanzanten rijkvanzanten mentioned this issue Oct 19, 2021
3 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants