Trifolium.Auth (Trifolium v1.0.0)
Module to be used to interact with Trefle Auth related endpoints.
Link to this section Summary
Functions
Generates a JWT token for a given origin
, which can be used in your client side
code, without exposing your private token. You can also specify a ip
along a origin
so that it works only from some giving client IP Address.
Link to this section Functions
Link to this function
token(origin, ip \\ nil)
Specs
token(String.t(), String.t() | nil) :: Trifolium.API.response()
Generates a JWT token for a given origin
, which can be used in your client side
code, without exposing your private token. You can also specify a ip
along a origin
so that it works only from some giving client IP Address.