pub struct FirebaseUser {Show 13 fields
pub iss: String,
pub aud: String,
pub sub: String,
pub iat: u64,
pub exp: u64,
pub auth_time: u64,
pub user_id: String,
pub provider_id: Option<String>,
pub name: Option<String>,
pub picture: Option<Url>,
pub email: Option<EmailAddress>,
pub email_verified: Option<bool>,
pub firebase: FirebaseProvider,
}
Expand description
Represents the decoded JWT claims from a Firebase Authentication token.
This struct maps to the standard fields provided by Firebase ID tokens. See: https://firebase.google.com/docs/auth/admin/verify-id-tokens#verify_id_tokens_using_a_third-party_jwt_library
Fields§
§iss: String
Issuer of the token (typically Firebase project URL)
aud: String
Audience for the token (your Firebase project ID)
sub: String
Subject — the unique identifier for the user (usually equals user_id
)
iat: u64
Issued-at time (epoch seconds)
exp: u64
Expiration time (epoch seconds)
auth_time: u64
Time the user authenticated (epoch seconds)
user_id: String
Firebase UID of the user
provider_id: Option<String>
The identity provider used to sign in (e.g., “google.com”)
name: Option<String>
User’s display name (if available)
picture: Option<Url>
URL to the user’s profile picture (if available)
email: Option<EmailAddress>
User’s email address
email_verified: Option<bool>
Whether the user’s email has been verified
firebase: FirebaseProvider
Additional Firebase-specific claims (provider info, linked accounts)
Trait Implementations§
Source§impl Clone for FirebaseUser
impl Clone for FirebaseUser
Source§fn clone(&self) -> FirebaseUser
fn clone(&self) -> FirebaseUser
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FirebaseUser
impl Debug for FirebaseUser
Source§impl<'de> Deserialize<'de> for FirebaseUser
impl<'de> Deserialize<'de> for FirebaseUser
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromRequest for FirebaseUser
impl FromRequest for FirebaseUser
Source§type Future = Ready<Result<FirebaseUser, <FirebaseUser as FromRequest>::Error>>
type Future = Ready<Result<FirebaseUser, <FirebaseUser as FromRequest>::Error>>
Self
. Read moreSource§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Self
from request parts asynchronously.