View Source ExOtp.Totp (ExOtp v0.0.1)
Module for the Time-based One-time Password algorithm.
Link to this section Summary
Functions
Callback implementation for ExOtp.Behaviour.new/2
.
Callback implementation for ExOtp.Behaviour.provision_uri/3
.
Callback implementation for ExOtp.Behaviour.validate/1
.
Link to this section Types
@type t() :: %ExOtp.Totp{base: ExOtp.Base.t(), interval: Integer.t()}
Link to this section Functions
@spec at(t(), DateTime.t(), integer()) :: String.t()
Callback implementation for ExOtp.Behaviour.new/2
.
Callback implementation for ExOtp.Behaviour.provision_uri/3
.
Link to this function
valid?(totp, otp, for_time \\ DateTime.utc_now(), valid_window \\ 0)
View Source@spec valid?(t(), String.t(), nil | Datetime.t(), nil | integer()) :: boolean()
Callback implementation for ExOtp.Behaviour.validate/1
.