End-to-end encryption support: fetch a public key to encrypt sensitive payloads (e.g. raw card/bank account numbers) client-side before they ever reach your server.
Summary
Functions
Generates a public key for end-to-end encryption.
Verifies a JWE token end-to-end encrypted with a key from create_key/2.
Intended for debugging your client-side encryption integration, not for
production traffic.
Functions
@spec create_key(Moov.Client.t(), map()) :: {:ok, map()} | {:error, Moov.Error.t()}
Generates a public key for end-to-end encryption.
@spec debug_token(Moov.Client.t(), map()) :: {:ok, map()} | {:error, Moov.Error.t()}
Verifies a JWE token end-to-end encrypted with a key from create_key/2.
Intended for debugging your client-side encryption integration, not for
production traffic.