Skip to content
Sharp

Authentication · interview question

What role does the Header play in a JWT?

Multiple choiceEasychapter-17-curatedpremiumauthenticationjwt-signatures
Choose one answer
Answer and explanation

Correct answer

C. It specifies the algorithm used and the token type.

Why

The Header of a JWT typically consists of two parts: the type of the token, which is JWT, and the signing algorithm being used, such as HMAC SHA256 or RSA.

Test yourself on Authentication

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

Start free test
All Authentication questions →