revokeOthers method

Future<void> revokeOthers()

Revokes all other active sessions except the current session.

Implementation

Future<void> revokeOthers() async {
  final hdrs = await auth.headers();
  final uri = auth.baseUrl.resolve('/auth/sessions/revoke-others');
  await auth.dio.post<dynamic>(
    uri.toString(),
    options: Options(headers: {'Accept': 'application/json', ...hdrs}),
  );
}