Bird
0
0

Which of the following is the correct way to send a refresh token in an HTTP request header?

easy📝 Syntax Q3 of 15
Rest API - Authentication and Authorization
Which of the following is the correct way to send a refresh token in an HTTP request header?
ARefresh-Token: <refresh_token>
BAuthorization: Bearer <refresh_token>
CToken: <refresh_token>
DX-Refresh-Token: <refresh_token>
Step-by-Step Solution
Solution:
  1. Step 1: Recognize standard header for tokens

    The 'Authorization' header with 'Bearer' scheme is standard for sending tokens.
  2. Step 2: Validate other headers

    Other headers like 'Refresh-Token' or 'X-Refresh-Token' are non-standard and less common.
  3. Final Answer:

    Authorization: Bearer <refresh_token> -> Option B
  4. Quick Check:

    Standard token header = Authorization Bearer [OK]
Quick Trick: Use 'Authorization: Bearer' for tokens [OK]
Common Mistakes:
  • Using custom headers without standardization
  • Omitting 'Bearer' keyword
  • Placing token in URL query parameters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes