use serde::{Deserialize, Serialize};

/// Claims encoded in the JWT stored in the `siren_session` cookie
#[derive(Debug, Serialize, Deserialize)]
pub struct BearerTokenClaims {
  /// Local user UUID (as a string)
  pub sub: String,
  /// Display username
  pub name: String,
  /// Issued-at epoch seconds
  pub iat: i64,
  /// Expiry epoch seconds
  pub exp: i64,
  /// Redis session key (used to look up the full session)
  pub jti: String,
}
