Overview of the Basic Auth
Authorization
header (e.g., Authorization: Bearer 'YOUR_ACCESS_TOKEN'
).
Before making a request, you should validate if the access token is still valid - if it has expired, you would use the refresh token to get a new access token without requiring the user to re-authenticate (i.e., without re-entering their login credentials).
/token
endpoint when the current access token expires. This regenerates a new access token and refresh code.
client_id
redirect_uri
response_type
scope
state
code
, so that you can receive and extract an authorization code in the callback URL.profile
to request the user’s email address and other information.