farmbot v6.4.1 Farmbot.Jwt View Source

Functions for dealing with the Farmbot JSON Web Token

Link to this section Summary

Types

t()

Type def for Farmbot Web Token

Functions

Decode a token

Decodes a token, raises if it fails

Link to this section Types

Link to this type t() View Source
t() :: %Farmbot.Jwt{
  beta_os_update_server: term(),
  bot: binary(),
  exp: number(),
  interim_email: binary(),
  iss: binary(),
  mqtt: binary(),
  os_update_server: binary(),
  vhost: binary()
}

Type def for Farmbot Web Token.

Link to this section Functions

Link to this function decode(tkn) View Source
decode(binary()) :: {:ok, t()} | {:error, term()}

Decode a token.

Link to this function decode!(tkn) View Source
decode!(binary()) :: t() | no_return()

Decodes a token, raises if it fails.