use serde::{Deserialize, Serialize};

/// Per-session user data stored in the tower-sessions session store.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct UserStateInner {
    pub sub: String,
    pub access_token: String,
    pub refresh_token: String,
    pub user: User,
}

/// Basic user profile stored alongside the session.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct User {
    pub email: String,
    pub name: String,
    pub avatar_url: String,
}
