View Source Bonfire.Data.Identity.AuthSecondFactor (Bonfire v0.9.11-social-beta.6)

A mixin that stores a second factor secret to authenticate an account.

Summary

Types

t()

@type t() :: %Bonfire.Data.Identity.AuthSecondFactor{
  __meta__: Ecto.Schema.Metadata.t(),
  code: term(),
  id: Needle.UID.t() | nil,
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  secret: term()
}

Functions

changeset(totp, attrs)

delete(struct, key)

get(struct, key, default \\ nil)

put(struct, key, val)

valid_totp?(totp, code)