Skip to content

Prevent clear auth data when getSession error #763

Open
@nvthuong1996

Description

@nvthuong1996

Describe the feature

If getSession throws an exception, the backend is most likely at fault:
If you clear auth data, all users using the website will have to log in again.

How would you implement this?

Only clear the session when the http error code returned from the backend is 401

Additional information

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement that needs to be addedrfcRequest for Comments: Needs discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions