Skip to content

Interceptor sends request with expired token #820

@yelhouti

Description

@yelhouti

Describe the bug
The interceptor sends requests with expired tokens even when useSilentRefresh is seems like the token expired event is never triggered (tab in the background), to avoid this, we could check (when useSilentRefresh) that the token is not expired yet, and if so clear the access_token and refresh before sending the request.

Expected behavior
When useSilentRefresh the user shouldn't ensure that it's token is valid before sending requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigation-neededIndication that the maintainer or involved community members may need to investigate more.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions