pub enum Config {
Stytch {
project_id: String,
project_secret: String,
m2m_client_id: Option<String>,
m2m_client_secret: Option<String>,
},
None,
}Expand description
Modern, type-safe configuration for authentication providers
This enum provides a cleaner API for configuring providers compared to the legacy AuthConfig struct. Each variant contains only the fields needed for that specific provider.
§Example
ⓘ
use libauth_rs::providers::ProviderConfig;
let config = ProviderConfig::Stytch {
project_id: "project-test-123".to_string(),
project_secret: "secret-test-456".to_string(),
client_id: None,
};Variants§
Stytch
Stytch authentication provider Registers all Stytch providers (B2B + Consumer, Session + M2M)
Fields
None
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)