Skip to content
Sharp

Authentication · interview question

Which element in a JWT contains the algorithm details used for signing?

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

Correct answer

B. Header

Why

The Header of a JWT contains metadata, including the algorithm used for signing the token. This information is essential for the recipient to verify the token's signature correctly.

Test yourself on Authentication

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

Start free test
All Authentication questions →