use saa_schema::saa_type;
use crate::Binary;
#[cfg_attr(not(feature = "wasm"), derive(serde::Serialize, serde::Deserialize))]
#[saa_type(no_deny)]
#[non_exhaustive]
pub struct ClientDataOtherKeys {
pub other_keys_can_be_added_here : Option<String>,
}
impl ClientDataOtherKeys {
pub fn new(
other_keys_can_be_added_here: Option<String>
) -> Self {
Self {
other_keys_can_be_added_here
}
}
}
#[saa_type(no_deny)]
pub struct PasskeyPayload {
pub other_keys : Option<ClientDataOtherKeys>,
pub origin: Option<String>
}
#[saa_type]
pub struct PasskeyInfo {
pub authenticator_data: Binary,
pub origin: String,
pub pubkey: Binary,
pub user_handle: Option<String>,
#[cfg_attr(feature = "wasm", serde(rename = "crossOrigin"))]
pub cross_origin: bool,
}