pub struct StytchProvider { /* private fields */ }Expand description
Stytch B2B Session Provider
Handles session tokens for B2B (business-to-business) authentication. B2B sessions include organization context and member information.
This provider uses the Stytch SDK for session authentication, which provides typed API interactions and proper error handling.
Implementations§
Trait Implementations§
Source§impl Authenticator for StytchProvider
impl Authenticator for StytchProvider
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 Token,
) -> Pin<Box<dyn Future<Output = AuthResult<UserContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Authorizer for StytchProvider
impl Authorizer for StytchProvider
Source§impl ClientAccess for StytchProvider
impl ClientAccess for StytchProvider
Source§impl Clone for StytchProvider
impl Clone for StytchProvider
Source§fn clone(&self) -> StytchProvider
fn clone(&self) -> StytchProvider
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StytchProvider
impl Debug for StytchProvider
Source§impl Session for StytchProvider
impl Session for StytchProvider
fn validate<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 Token,
) -> Pin<Box<dyn Future<Output = AuthResult<UserContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Authn for StytchProvider
Auto Trait Implementations§
impl Freeze for StytchProvider
impl !RefUnwindSafe for StytchProvider
impl Send for StytchProvider
impl Sync for StytchProvider
impl Unpin for StytchProvider
impl !UnwindSafe for StytchProvider
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)