ovok_sdk.auth.credentials

The interface that supplies bearer tokens to requests.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.25+2ba84b0

The interface that supplies bearer tokens to requests.

Credentials

Credentials()

Bases: Protocol

Supplies the bearer token for each request and renews it on demand.

access_token()

access_token() -> str | None

Return the current access token, or None when there is none.

refresh()

refresh() -> bool

Renew the token; return whether a new one is available.

Last updated on

On this page