curl --request POST \
--url http://localhost:8000/api/v1/users/login-as/{user_id} \
--header 'Authorization: Bearer <token>'{
"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"
}Log in as a user by ID.
curl --request POST \
--url http://localhost:8000/api/v1/users/login-as/{user_id} \
--header 'Authorization: Bearer <token>'{
"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"
}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The schema for a logged-in user.