mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 19:34:29 +00:00
11 lines
755 B
TypeScript
11 lines
755 B
TypeScript
/** Guest frame → main: whether the frame's document is waiting on a passkey (WebAuthn) request. */
|
|
export const BROWSER_PASSKEY_REQUEST_PENDING_CHANNEL = 'browser:passkeyRequestPending'
|
|
/** Main → guest frame: cancel its pending passkey requests. */
|
|
export const BROWSER_PASSKEY_REQUEST_CANCEL_CHANNEL = 'browser:passkeyRequestCancel'
|
|
export const BROWSER_PASSKEY_REQUEST_PRELOAD_FILE = 'browser-passkey-request-preload.js'
|
|
|
|
/** What an agent should do about a page's pending passkey request. */
|
|
export function formatBrowserPasskeyRequest(origin: string, dismissCommand: string): string {
|
|
return `${origin} is waiting for a passkey or security key, which you can't provide. Ask the user to finish it, or run \`${dismissCommand}\` to cancel it.`
|
|
}
|