Inttegro.Otp.VerificationVerdict (inttegro v0.2.0)

Copy Markdown View Source

Values accepted for Verification Verdict in the Otp API.

Prefer the documented atoms returned by values/0. The type also accepts strings so a newer server value can be preserved by an older SDK instead of failing during decoding.

Initiates, verifies, and inspects one-time passcode transactions.

OTP delivery and verification are separate steps. Initiation returning successfully means the transaction was accepted, not that the recipient received or verified the code. Keep the returned transaction ID and submit the user-provided code through verify/3.

Summary

Types

t()

A verification verdict atom or an unknown wire value preserved as a string.

Functions

Returns the documented Inttegro.Otp.VerificationVerdict atoms known by this SDK version.

Types

t()

@type t() :: :fail | :pass | String.t()

A verification verdict atom or an unknown wire value preserved as a string.

Functions

values()

@spec values() :: [t()]

Returns the documented Inttegro.Otp.VerificationVerdict atoms known by this SDK version.