API referenceresources

ovok_sdk.resources.auth_sessions

The `ovok.auth.sessions` namespace: the account's server-side sessions.

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

The ovok.auth.sessions namespace: the account's server-side sessions.

AuthSessionsResource

AuthSessionsResource(http: HttpClient, session: UserSession | None)

The account's sessions on the server.

Access it as ovok.auth.sessions.

list()

list() -> list[dict[str, Any]]

List the account's active sessions.

Returns

  • list[dict[str, Any]]: One entry per session, as the API returns them.

revoke()

revoke(option: str) -> None

Revoke one or more sessions.

Revoking "current" also ends the session stored by this client.

Parameters

NameTypeDefaultDescription
optionstrA session ID, or "current", "other" or "all".

Last updated on

On this page