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.

Feature: Email & Password Login

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

Relationships

Dependents (1)

Components that depend on this component