Skip to content

JWT error handling #2

@satishpatro44

Description

@satishpatro44

Scenario: when JWT token expired, and I am trying to access an API using the expired token, it's not handling properly, it's giving "ExpiredJwtException" exception in console, but in API response it's giving 500 internal server error with response
{ "timestamp": "2021-10-21T10:49:15.462+00:00", "path": "/auth/test", "status": 500, "error": "Internal Server Error", "requestId": "6469003d-1" }

Can you confirm if it is handled properly in your project or am I missing anything?
I have referred your project for most of the files & I didn't clone. So, confirming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions