Skip to main content

AtprotoSessionResolver

Trait AtprotoSessionResolver 

Source
pub trait AtprotoSessionResolver: Send + Sync {
    // Required method
    fn resolve_session<'life0, 'life1, 'async_trait>(
        &'life0 self,
        did: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<AtprotoSessionInfo>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Explicit native authority seam for standard getSession.

Implementations must bind the returned handle and lifecycle state to the requested DID using the authoritative account records. Returning None means the DID is not a locally hosted account. No default implementation is installed, so adding this interface cannot expose account state by itself.

Required Methods§

Source

fn resolve_session<'life0, 'life1, 'async_trait>( &'life0 self, did: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<AtprotoSessionInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§