Bird
Raised Fist0

Which of the following is the correct format of a JWT string?

easy📝 Syntax Q12 of Q15
Rest API - Authentication and Authorization
Which of the following is the correct format of a JWT string?
Aheader|payload|signature
Bheader-payload-signature
Cheader.payload.signature
Dheader_payload_signature
Step-by-Step Solution
Solution:
  1. Step 1: Recall JWT encoding format

    JWT parts are base64url encoded and joined by dots.
  2. Step 2: Identify correct separator

    The correct separator between parts is a dot ('.').
  3. Final Answer:

    header.payload.signature -> Option C
  4. Quick Check:

    JWT format uses dots '.' [OK]
Quick Trick: JWT parts are joined by dots '.' [OK]
Common Mistakes:
MISTAKES
  • Using dashes or underscores instead of dots
  • Confusing with other token formats
  • Not encoding parts properly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes