pub enum AuthProvider {
None,
SupabaseAuth,
Oidc(OidcClient),
}Expand description
Authentication provider for Supabase
This enum abstracts the token refresh logic for different authentication methods.
Variants§
None
No authentication provider - uses API key only, no automatic token refresh
SupabaseAuth
Supabase Auth (GoTrue) - uses Supabase’s built-in authentication
Token refresh uses POST /auth/v1/token with grant_type=refresh_token
Oidc(OidcClient)
External OIDC provider - uses standard OIDC discovery and token endpoint
Trait Implementations§
Source§impl Clone for AuthProvider
impl Clone for AuthProvider
Source§fn clone(&self) -> AuthProvider
fn clone(&self) -> AuthProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AuthProvider
impl !UnwindSafe for AuthProvider
impl Freeze for AuthProvider
impl Send for AuthProvider
impl Sync for AuthProvider
impl Unpin for AuthProvider
impl UnsafeUnpin for AuthProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more