View Source BaserowEx.BaserowClient (baserow_ex v0.1.0)

The Baserow API uses an authentication strategy based on an email and password to obtain your access_token, which means that when the access_token expires, it will be necessary to call the refresh_token endpoint, and when it becomes invalid, it will be necessary to call the initial endpoint passing username and password once again.

This module is responsible for making these calls, and building a client that will be returned by each BaserowEx function, containing all the necessary data so that the user does not need to manage the session.

Summary

Functions

calls the authentication endpoint and returns the client with the session data

calls the refresh_token endpoint and returns the client with the new session data

Functions

@spec call(String.t(), String.t()) :: BaserowEx.BaserowClient.Client.t()

calls the authentication endpoint and returns the client with the session data

Link to this function

try_refresh_token(client)

View Source
@spec try_refresh_token(BaserowEx.BaserowClient.Client.t()) ::
  {:ok, BaserowEx.BaserowClient.Client.t()} | {:error, any()}

calls the refresh_token endpoint and returns the client with the new session data