KemalIdentity::MFA::RecoveryCode
One single-use recovery code.
Unlike the TOTP secret, this is an ordinary bearer secret — the server only has to
recognise it — so it follows the token discipline in docs/02-security-model.md exactly:
generated from a CSPRNG, stored as a SHA-256 digest, and consumed atomically so that two
simultaneous requests cannot both spend it.
Constructors
Instance methods
account_id
Sourcecode_digest
Sourcecreated_at
Sourceid
SourceAppends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
used?
Sourceused_at
Source