cover/Elixir.WalletAuth.html

1 defmodule WalletAuth do
2 @moduledoc """
3 Authentication and session security for the wallet platform.
4
5 Per ADR 0001: this app owns all AuthN/AuthZ decisions for the wallet platform.
6 It does NOT implement financial domain logic.
7
8 ## Responsibilities
9 - Credential validation and login flow
10 - JWT access token issuance and validation
11 - Refresh token rotation (one-time-use semantics) and revocation
12 - OTP/MFA challenge generation and verification with anti-abuse controls
13 - Session lifecycle (start, revoke)
14 - Trusted-device registration and revocation
15 - Security audit event emission
16
17 ## Forbidden
18 - Financial business logic
19 - Direct DB access to other apps' tables
20 - Plaintext secrets in source or config
21 """
22 end
Line Hits Source