unlockSession method

Future<void> unlockSession()

Unlocks a locked session, restoring the prior authenticated state.

Implementation

Future<void> unlockSession() async {
  final scope = _currentScope;
  if (scope == null) return;

  final locked = _state;
  if (locked is AuthLocked) {
    scope.markActive();
    _state = AuthAuthenticated(locked.session);
    _notifyListeners();
  }
}