C#: AuthFlowType

Chooses the OAuth flow type for the whole client when you create it.

Examples

Use PKCE for all flows

var options = new Supabase.SupabaseOptions
{
    AuthFlowType = Constants.OAuthFlowType.PKCE
};

var supabase = new Supabase.Client(url, key, options);
await supabase.InitializeAsync();

var state = await supabase.Auth.SignIn(Provider.Github);

// After the user comes back with a code:
var session = await supabase.Auth.ExchangeCodeForSession(state.PKCEVerifier!, code);