Ask Your Question
1

What is the appropriate response from the backend when a JWT token has expired?

asked 2021-12-06 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-05 22:00:00 +0000

ladyg gravatar image

The appropriate response from the backend when a JWT token has expired is to return an HTTP response with a status code of 401 (Unauthorized) or 403 (Forbidden), indicating that the user is not authorized to access the requested resource. Additionally, the response can include a message indicating that the token has expired and that the user needs to obtain a new token to access the resource.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-06 11:00:00 +0000

Seen: 12 times

Last updated: Mar 05 '22