pub struct GenerateRegisterOptions(/* private fields */);Expand description
GET /passkey/generate-register-options: the PublicKeyCredentialCreationOptions to
pass to navigator.credentials.create(). Needs a fresh session that may mint
credentials (see registering_session): 401 without one, 403 SESSION_NOT_FRESH
with an old or ephemeral one. The user’s passkeys are excluded, so an authenticator can’t
register twice. Signed out, with Passkey::sign_up on, its resolver names the user
the passkey will create.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for GenerateRegisterOptions
impl<D: Adapter> Endpoint<D> for GenerateRegisterOptions
const METHOD: Method = Method::GET
const PATH: &'static str = "/passkey/generate-register-options"
type Access = MaybeAuthenticated
type Input = GenerateRegisterOptionsInput
type Output = PublicKeyCredentialCreationOptions
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: GenerateRegisterOptionsInput, ) -> Result<PublicKeyCredentialCreationOptions, AuthError>
Auto Trait Implementations§
impl !RefUnwindSafe for GenerateRegisterOptions
impl !UnwindSafe for GenerateRegisterOptions
impl Forget for GenerateRegisterOptions
impl Freeze for GenerateRegisterOptions
impl Move for GenerateRegisterOptions
impl Send for GenerateRegisterOptions
impl Sync for GenerateRegisterOptions
impl Unpin for GenerateRegisterOptions
impl UnsafeUnpin for GenerateRegisterOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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