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 AuthSessionsResourceThe 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.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional | |
_session | UserSession | positional |
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.
| Parameter | Type | Kind | Default |
|---|---|---|---|
option | String | positional |
Returns Future<void>.
Last updated on