isSessionActive method

Future<bool> isSessionActive()

Checks if an authenticated session exists.

Use this method to wait for passkey login before closing the browser.

Implementation

Future<bool> isSessionActive() async {
  final result = await _postMessage('isSessionActive');
  return result.first ?? false;
}