open_payments/access_token

Values

pub fn revoke(
  client: client.Client,
  access_token: types.AccessTokenResponse,
) -> Result(Nil, error.OpenPaymentsError)

Revokes an access token, invalidating it immediately. The token’s manage URL is used as the request URL. See https://openpayments.dev/apis/auth-server/operations/delete-token/

pub fn rotate(
  client: client.Client,
  access_token: types.AccessTokenResponse,
) -> Result(types.AccessTokenResponse, error.OpenPaymentsError)

Rotates an access token, exchanging it for a new token value while keeping the same grant. The token’s manage URL is used as the request URL. See https://openpayments.dev/apis/auth-server/operations/post-token/

Search Document