Handle OAuth callback
Process OAuth callback and exchange code for access token
Process OAuth callback and exchange code for access token
codestring
Authorization code from OAuth provider
providerstring
Provider name (anthropic)
statestring
OAuth state for verification
Response Body
from mix_python_sdk import Mixwith Mix() as mix: res = mix.authentication.handle_o_auth_callback(code="<value>", provider="<value>", state="Arizona") # Handle response print(res)
{
"expires_in": 0,
"message": "string",
"provider": "string",
"status": "string"
}
{
"error": {
"code": 0,
"message": "string",
"type": "bad_request"
}
}
{
"error": {
"code": 0,
"message": "string",
"type": "bad_request"
}
}