JWT Token Utility
Component Detail
Infrastructure
medium complexity
Shared Component
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Infrastructure utility for signing and validating JWT access tokens. Supports per-tenant signing key retrieval and configurable token TTL. Validates signature, expiry, and tenant claims on every inbound request.
jwt-token-utility
Responsibilities
- Generate signed JWT access tokens with configurable TTL and tenant-scoped claims
- Validate JWT signature, expiry, and claims on incoming requests
- Retrieve and cache per-tenant signing keys
Interfaces
sign(payload: Map<String, dynamic>, tenantKeyId: String) → String
verify(token: String) → JwtPayload
getSigningKey(tenantId: String) → SigningKey