curl --request POST \
--url http://localhost:8000/api/v1/users/authorization/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'username=<string>' \
--data 'password=<string>' \
--data 'grant_type=<string>' \
--data scope= \
--data 'client_id=<string>' \
--data 'client_secret=<string>' \
--data 'google_recaptcha_response=<string>'{
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"access_token": "<string>",
"is_google_recaptcha_response_valid": true,
"token_type": "bearer"
}Login for an access token using the data from the OAuth2PasswordRequestForm.
curl --request POST \
--url http://localhost:8000/api/v1/users/authorization/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'username=<string>' \
--data 'password=<string>' \
--data 'grant_type=<string>' \
--data scope= \
--data 'client_id=<string>' \
--data 'client_secret=<string>' \
--data 'google_recaptcha_response=<string>'{
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"access_token": "<string>",
"is_google_recaptcha_response_valid": true,
"token_type": "bearer"
}Successful Response
The schema for a logged-in user.