Skip to content
Sharp

Authentication · interview question

Which component in the JWT Header specifies the algorithm used to sign the token?

Multiple choiceEasychapter-17-curatedpremiumauthenticationjson-web-tokens-jwt
Choose one answer
Answer and explanation

Correct answer

C. Alg

Why

The 'alg' field in the JWT Header specifies the algorithm used to sign the token, ensuring that the token can be verified correctly.

Test yourself on Authentication

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

Start free test
All Authentication questions →