Expand description
Shared business logic — framework-agnostic pure functions.
Both the Axum server and Cloudflare Worker call these functions, keeping route handlers as thin adapters.
Structs§
- Built
Session List Query - Result of building a session list query from
SessionListQuery. - Token
Bundle - Pre-computed token bundle returned by
prepare_token_bundle.
Enums§
- Param
Value - Abstract query parameter value, framework-agnostic.
Functions§
- build_
session_ list_ query - Build framework-agnostic SQL + params for paginated session listing.
- generate_
api_ key - Generate a new API key with the
osk_prefix. - prepare_
token_ bundle - Build a
TokenBundlecontaining a JWT, refresh token, and the auth response. - validate_
email - Validate and normalize an email address. Returns the lowercased, trimmed email.
- validate_
nickname - Validate and normalize a user nickname. Returns the trimmed nickname.
- validate_
password - Validate a password (8-12 characters).
- validate_
team_ name - Validate and normalize a team name. Returns the trimmed name.