Skip to content

Does refresh() throw if it fails to refresh, or does the returned value need to be checked? #1038

Open
@gwashburne

Description

Documentation Feedback

This is mostly a question, but I think the answer would be good to include in the documentation. Suppose the following:

  • I call await refresh() inside a try catch block with a refresh token
  • The user's account has been deactivated, so the refresh should fail

Will refresh() throw an error, or will the RefreshResult need to be checked to see if it failed?

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