unilim-cas 1.0.1

A purrfect CAS authentication wrapper for Unilim.
Documentation
use serde::{Deserialize, Serialize};
#[cfg(all(target_arch = "wasm32", feature = "npm"))]
use tsify_next::Tsify;

/// user information returned by `/oauth2/userinfo`.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(
    all(target_arch = "wasm32", feature = "npm"),
    derive(Tsify),
    tsify(into_wasm_abi, from_wasm_abi)
)]
pub struct User {
    /// unique subject identifier.
    pub sub: String,
    /// institutional email address.
    pub email: String,
    /// first name.
    pub given_name: String,
    /// last name.
    pub family_name: String,
    /// full display name.
    pub name: String,
}