farmbot v6.0.1-alpha 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{bot: binary, exp: number, iss: binary, mqtt: binary, os_update_server: 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.