View Source SmartToken (smart_token v0.1.1)

Summary

Types

@type t() :: %SmartToken{
  access_history: term(),
  active: boolean(),
  context: term(),
  extended_info: term(),
  identifier: integer(),
  kind: term(),
  owner: term(),
  permissions: term(),
  resource: term(),
  scope: term(),
  state: term(),
  template: term(),
  token_a: bitstring() | :generate,
  token_b: bitstring() | :generate,
  type: term(),
  validity_period: term(),
  vsn: term()
}

Functions

Link to this function

account_verification_token(options \\ nil)

View Source

Create a new account verification token.

Link to this function

authorize!(token_key, conn, context, options \\ %{})

View Source
Link to this function

bind(this, bindings, options)

View Source
Link to this function

bind!(token, bindings, context, options \\ nil)

View Source

Create a new token with the given settings.

Link to this function

record_access!(this, entry, options \\ nil)

View Source
Link to this function

record_invalid_access!(tokens, conn, options)

View Source
Link to this function

record_valid_access!(this, conn, options)

View Source
Link to this function

validate(this, conn, context, options)

View Source
Link to this function

validate_access_count(this)

View Source
Link to this function

validate_period(this, options)

View Source