Skip to content

feat(webauthn): include credentials in storageState#41215

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:storagestate-credentials
Jun 19, 2026
Merged

feat(webauthn): include credentials in storageState#41215
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:storagestate-credentials

Conversation

@dgozman

@dgozman dgozman commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • context.storageState({ credentials: true }) now captures the context's virtual WebAuthn credentials (opt-in, like indexedDB).
  • When a storage state passed to browser.newContext({ storageState }) or context.setStorageState() contains credentials, they are re-seeded and the virtual authenticator is installed automatically.
  • Docs updated: class-credentials, the storage-state option, and the authentication guide.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread docs/src/api/class-credentials.md
Comment thread docs/src/auth.md
Capture the context's virtual WebAuthn credentials with
`storageState({ credentials: true })`, and restore them (installing the
authenticator) when a storage state is supplied via the `storageState`
option or `setStorageState`.
@dgozman dgozman force-pushed the storagestate-credentials branch from 7f66caf to ad60a2c Compare June 19, 2026 11:44
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [chromium] › mcp/cli-core.spec.ts:70 › dblclick @mcp-windows-latest-chromium

7353 passed, 1122 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@chromium-ubuntu-22.04-arm-node20`

39637 passed, 744 skipped


Merge workflow run.

@dgozman dgozman merged commit 0beb571 into microsoft:main Jun 19, 2026
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants