revokeSession method

Future<bool> revokeSession(
  1. String sessionId
)
inherited

Revokes a specific session by ID.

Implementation

Future<bool> revokeSession(String sessionId) async {
  try {
    await _authService.revokeSession(sessionId);
    return true;
  } on DioException catch (e) {
    _handleError(e);
    return false;
  }
}