Mix LogoMix

Validate preferred provider

Check if the user's preferred provider is authenticated

Check if the user's preferred provider is authenticated

GET
/api/auth/validate

Response Body

from mix_python_sdk import Mixwith Mix() as mix:    res = mix.authentication.validate_preferred_provider()    # Handle response    print(res)
{
  "auth_method": "oauth",
  "message": "string",
  "provider": "string",
  "valid": true
}
{
  "error": {
    "code": 0,
    "message": "string",
    "type": "bad_request"
  }
}