This response can have the following status codes:
200: Authorization completed successfully (native in_place flow). The result contains the authorization code and state.204: No content - user cancelled or flow completed without result data.302: Redirect in progress (web redirect flow). The page will navigate away.400: Bad request - missing required OAuth parameters or invalid configuration.401: Unauthorized - user not authenticated or session expired.403: Forbidden - client not authorized for the requested scope.500: Internal server error - unexpected error during native authorization.501: Not implemented - this method requires the Grab app environment.Success response (200) - native in_place flow:
{
status_code: 200,
result: {
code: 'auth-code-abc123',
state: 'csrf-state-xyz789'
}
}
Unauthorized response (401):
{
status_code: 401,
error: 'Unauthorized: User not authenticated or session expired'
}
Response when initiating an authorization flow.