Skip to content

Authentication-client removes acces token on failed reauthenticate. #1522

@rybaczewa

Description

@rybaczewa

}).catch((error: Error) =>
this.removeAccessToken().then(() => Promise.reject(error))
);

Authentication client removes authentication token on every failed reauthentication. It's not referenced in docs and is problematic when authentication server goes offline.
In my use case, I want to check if user can be authenticated with current token. No matter what the error is, on fail, it's removed - I would like to keep the token and try again later.

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