Skip to main content

SupabaseClientAuthExt

Trait SupabaseClientAuthExt 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl SupabaseClientAuthExt for SupabaseClient

Implementors§