utils.decorators

module utils.decorators

Global Variables

  • TYPE_CHECKING


function auth

auth(func: Callable[~P, ~R]) → Callable[~P, ~R]

Check that we have the token and it is not expired before executing

Expects to be called from an instance of ApiClient to and endpoint that needs authorization

Args:

  • func (Callable): function to decorate

Returns:

  • Callable: decorated function

Last updated