C#: Third-party auth

Authenticates the client through a third-party auth provider such as Clerk, Auth0, Firebase, or Cognito, instead of Supabase Auth. Set SupabaseOptions.ThirdPartyAccessToken to a callback that returns the provider's current JWT, or null when no user is signed in.

Examples

Use a third-party token

var options = new Supabase.SupabaseOptions
{
    ThirdPartyAccessToken = cancellationToken => clerk.GetTokenAsync(cancellationToken)
};

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

var todos = await supabase.From<Todo>().Get();