//! Claim shapes for Firebase ID tokens.
useserde::{Deserialize, Serialize};/// The decoded and verified claims of a Firebase ID token.
////// See <https://firebase.google.com/docs/auth/admin/verify-id-tokens> for the
/// authoritative claim reference.
#[derive(Debug, Clone, Serialize, Deserialize)]pubstructIdTokenClaims{/// The token issuer, expected to be `https://securetoken.google.com/<project-id>`.
pubiss: String,
/// The intended audience, expected to equal the Firebase project ID.
pubaud: String,
/// Issued-at time, in seconds since the Unix epoch.
pubiat:i64,
/// Expiration time, in seconds since the Unix epoch.
pubexp:i64,
/// The time the end user authenticated, in seconds since the Unix epoch.
pubauth_time:i64,
/// The Firebase user id (UID) this token was issued for.
pubsub: String,
/// The user's email address, if available.
pubemail:Option<String>,
/// Whether the user's email address has been verified.
#[serde(default)]pubemail_verified:bool,
/// Custom claims attached to the user via `set_custom_user_claims`.
#[serde(flatten)]pubcustom_claims:serde_json::Map<String, serde_json::Value>,
}