Kantoor.Accounts.AppPassword
(Kantoor v1.0.0)
A per-device credential for protocol clients (IMAP, POP3, SMTP, DAV).
The plaintext is kapw_<id>_<secret> and is shown once. Only an Argon2id
hash of the secret is stored; the id is the lookup key.
Summary
Changeset for creation. user_id and the hash are set by the caller.
Types
@type t() :: %Kantoor.Accounts.AppPassword{
__meta__: term(),
expires_at: term(),
hashed_secret: term(),
id: term(),
inserted_at: term(),
label: term(),
last_used_at: term(),
last_used_ip: term(),
revoked_at: term(),
scopes: term(),
updated_at: term(),
user: term(),
user_id: term()
}
Functions
Changeset for creation. user_id and the hash are set by the caller.