pub trait SupabaseClientAuthExt {
// Required method
fn auth(&self) -> Result<AuthClient, AuthError>;
}Expand description
Extension trait to create an AuthClient from a SupabaseClient.
§Example
ⓘ
use supabase_client_sdk::prelude::*;
use supabase_client_auth::SupabaseClientAuthExt;
let client = SupabaseClient::new(config).await?;
let auth = client.auth()?;
let session = auth.sign_in_with_password_email("user@example.com", "pass").await?;Required Methods§
Sourcefn auth(&self) -> Result<AuthClient, AuthError>
fn auth(&self) -> Result<AuthClient, AuthError>
Create an AuthClient from the client’s configuration.
Requires supabase_url and supabase_key to be set in the config.