Skip to content
Sharp

Authentication · interview question

What role does the header play in a JWT token?

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

Correct answer

A. It specifies the type of token and the signing algorithm used.

Why

The header of a JWT token specifies the type of token and the signing algorithm used. This information is required for parsing and validating the token's signature.

Test yourself on Authentication

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

Start free test
All Authentication questions →