1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Serialize, Deserialize};

/// `GooglePayload` is the user data from google.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[non_exhaustive]
pub struct GooglePayload {
    pub iss: String,
    pub nbf: u64,
    pub aud: String,
    pub sub: String,
    pub email: String,
    pub email_verified: bool,
    pub azp: String,
    pub name: String,
    pub picture: String,
    pub given_name: String,
    pub family_name: String,
    pub iat: u64,
    pub exp: u64,
    pub jti: String,
}