Skip to main content

Module auth

Module auth 

Source
Expand description

BitRouter JWT protocol types.

Defines the open JWT claims standard shared between the bitrouter CLI, self-hosted servers, and the BitRouter cloud service. JWTs are signed with web3 wallet keys — Ed25519 for Solana (SOL_EDDSA) or EIP-191 secp256k1 for EVM chains (EIP191K). Users hold the private seed, servers verify signatures and resolve accounts by CAIP-10 identity.

Modules§

access
Model access control — glob-based allowlist matching.
chain
Chain identification and CAIP-10 account types for multi-chain JWT auth.
claims
JWT claims types for the BitRouter authentication protocol.
keys
Multi-chain key management for BitRouter JWT authentication.
token
JWT signing and verification for the BitRouter protocol.

Enums§

JwtError
Errors arising from JWT operations.