Auth sessions resource

Generated reference for ovok_sdk: auth sessions resource.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.23+d339d81

AuthSessionsResource

class AuthSessionsResource

The account's sessions on the server. Reached through ovok.auth.sessions.

Constructors

AuthSessionsResource.new

AuthSessionsResource(HttpClient _http, UserSession _session)

Built by AuthResource; use ovok.auth.sessions instead.

ParameterTypeKindDefault
_httpHttpClientpositional
_sessionUserSessionpositional

Methods

AuthSessionsResource.list

Future<List<dynamic>> list()

Lists the account's sessions. Calls GET auth/session.

Returns Future<List<dynamic>>.

AuthSessionsResource.revoke

Future<void> revoke(String option)

Revokes sessions. Calls DELETE auth/session/{option}.

option is current, other, all or a session id; revoking current also ends it here.

ParameterTypeKindDefault
optionStringpositional

Returns Future<void>.

Last updated on

On this page