Which HTTP method is typically used by clients to send a refresh token to the server for a new access token?
easy📝 Syntax Q12 of Q15
Rest API - Authentication and Authorization
Which HTTP method is typically used by clients to send a refresh token to the server for a new access token?
AGET
BPUT
CPOST
DDELETE
Step-by-Step Solution
Solution:
Step 1: Identify the HTTP method for sending data securely
POST is used to send data like refresh tokens in the request body securely to the server.
Step 2: Eliminate other methods
GET is for retrieving data, DELETE for removing resources, and PUT for updating. Refresh token requests usually send sensitive data, so POST is preferred.
Final Answer:
POST -> Option C
Quick Check:
Send refresh token securely = POST [OK]
Quick Trick:Use POST to send refresh tokens securely [OK]
Common Mistakes:
MISTAKES
Using GET which exposes tokens in URL
Confusing PUT with POST
Using DELETE which is for removal
Master "Authentication and Authorization" in Rest API
9 interactive learning modes - each teaches the same concept differently