pub struct RecoverFinalizeRequest {
pub attestation: Map<String, Value>,
pub challenge_id: Uuid,
pub magic_link_token: String,
}Expand description
Completes recovery: consumes the magic-link token + challenge, registers a new passkey, and mints a session token.
JSON schema
{
"title": "RecoverFinalizeRequest",
"description": "Completes recovery: consumes the magic-link token +
challenge, registers a new passkey, and mints a session token.",
"type": "object",
"required": [
"attestation",
"challenge_id",
"magic_link_token"
],
"properties": {
"attestation": {
"description": "The WebAuthn attestation response from
navigator.credentials.create.",
"type": "object",
"additionalProperties": true
},
"challenge_id": {
"description": "The challenge id returned by the recover-options
call.",
"type": "string",
"format": "uuid"
},
"magic_link_token": {
"description": "The raw recovery token (consumed here).",
"type": "string"
}
}
}Fields§
§attestation: Map<String, Value>The WebAuthn attestation response from navigator.credentials.create.
challenge_id: UuidThe challenge id returned by the recover-options call.
magic_link_token: StringThe raw recovery token (consumed here).
Trait Implementations§
Source§impl Clone for RecoverFinalizeRequest
impl Clone for RecoverFinalizeRequest
Source§fn clone(&self) -> RecoverFinalizeRequest
fn clone(&self) -> RecoverFinalizeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoverFinalizeRequest
impl Debug for RecoverFinalizeRequest
Source§impl<'de> Deserialize<'de> for RecoverFinalizeRequest
impl<'de> Deserialize<'de> for RecoverFinalizeRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecoverFinalizeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecoverFinalizeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RecoverFinalizeRequest
impl Serialize for RecoverFinalizeRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RecoverFinalizeRequest
impl RefUnwindSafe for RecoverFinalizeRequest
impl Send for RecoverFinalizeRequest
impl Sync for RecoverFinalizeRequest
impl Unpin for RecoverFinalizeRequest
impl UnsafeUnpin for RecoverFinalizeRequest
impl UnwindSafe for RecoverFinalizeRequest
Blanket Implementations§
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