Skip to main content

Crate rbp_auth

Crate rbp_auth 

Source
Expand description

Authentication, sessions, and identity management.

JWT-based authentication with Argon2 password hashing. Supports both registered members and anonymous lurkers for spectating games.

§Identity Types

  • Member — Registered user with credentials
  • Lurker — Anonymous session for spectators
  • User — Authenticated user (member or lurker)
  • Session — Active login session with expiry

§Security

  • Crypto — JWT signing and verification
  • Claims — JWT payload structure
  • password — Argon2 hashing and verification

Modules§

password

Structs§

AuthResponse
Claims
Crypto
LoginRequest
Lurker
Anonymous session tracking for unauthenticated visitors.
Member
Authenticated user with verified identity.
RegisterRequest
Session
Persisted session for token management.
UserInfo

Enums§

User
User represents authentication state: anonymous or authenticated.