Python: Sign in a user through OAuth

Parameters

Examples

Sign in using a third-party provider

response = supabase.auth.sign_in_with_oauth(
    \{"provider": "github"\}
)

Sign in using a third-party provider with redirect

response = supabase.auth.sign_in_with_oauth(
    \{
        "provider": "github",
        "options": \{
            "redirect_to": "https://example.com/welcome",
        \}
    \}
)

Sign in with scopes

response = supabase.auth.sign_in_with_oauth(
    \{
        "provider": "github",
        "options": \{
            "scopes": "repo gist notifications",
        \}
    \}
)