Skip to content

Directus app : 401, token expired - block the app instead of redirecting to login #111

Description

@louisdussarps

Describe the Bug

When a problem occurs with a token (expiration, invalid token...), the app persists sending an error message :
{"errors":[{"message":"Token expired.","extensions":{"code":"TOKEN_EXPIRED"}}]}
The studio app should redirect to the login page when it got this error.

Only workaround today is to clean the cookies.

To Reproduce

Connect to directus and force a token to expire

Directus Version

v11.0.1

Hosting Strategy

Self-Hosted (Docker Image)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions