pub type MemoryStore = HashMap<Vec<u8>, Passkey>;
Expand description

In-memory store for Passkeys

Useful for tests.

Aliased Type§

struct MemoryStore { /* private fields */ }

Trait Implementations§

source§

impl CredentialStore for MemoryStore

§

type PasskeyItem = Passkey

Defines the return type of find_credentials(…)
source§

fn find_credentials<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, allow_credentials: Option<&'life1 [PublicKeyCredentialDescriptor]>, _rp_id: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::PasskeyItem>, StatusCode>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Find all credentials matching the given ids and rp_id. Read more
source§

fn save_credential<'life0, 'async_trait>( &'life0 mut self, cred: Passkey, _user: PublicKeyCredentialUserEntity, _rp: PublicKeyCredentialRpEntity ) -> Pin<Box<dyn Future<Output = Result<(), StatusCode>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Save the new/updated credential into your store