Skip to content
Sharp

Authentication · interview question

In the context of stateless JWT tokens, what is the role of the signature?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationsalting-and-bcrypt
Choose one answer
Answer and explanation

Correct answer

D. To verify the integrity and authenticity of the token.

Why

The signature in a JWT token verifies the integrity and authenticity of the token. The server can use the signature to ensure that the token has not been tampered with and was indeed issued by a trusted source.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →