Skip to content

feat: expo passkeys and injectable fetch, stateless legacy cookies off by default - #223

Merged
thegdsks merged 2 commits into
release/wave6-2026-10from
feat/expo-passkeys
Oct 13, 2026
Merged

thegdsks merged 2 commits into
release/wave6-2026-10from
feat/expo-passkeys

Conversation

@thegdsks

Copy link
Copy Markdown
Member

Two commits for the wave 6 release branch.

feat: passkey sign-in and registration for the expo client

The server passkey routes already return WebAuthn JSON options and a bearer session token, so the client is flow code only.

  • config.passkeys: a platform authenticator with create(options) and get(options). react-native-passkey's Passkey satisfies it directly.
  • signInWithPasskey, registerPasskey (needs a session) and the usePasskeys hook. A required second factor comes back as a failure naming the gate, like social sign-in.
  • config.fetch: every provider request goes through it, for DPoP proofs from createDPoPClient or certificate pinning.

Session tokens are plain bearer tokens on the server, so DPoP proofs help for OAuth and MCP access tokens sent through the same fetch. The docs say so.

fix: refuse legacy unbound token cookies by default

acceptLegacyTokenCookies defaulted to true for one release after the v2 cookie format. That window is over: a legacy cookie is not bound to the identity cookie, so another user's token cookie sealed under the same secret was accepted. The default is now off. Active users were already re-sealed on read. Anyone still holding a pre-v2 cookie signs in once more. Set true for one cookie lifetime to keep them.

Verified (by running)

  • expo: 13 tests (5 new passkey tests: options passthrough, cancelled prompt, rejected assertion, gate, registration with the session token, provider with injected fetch) and tsc.
  • core: session suites (147 tests), tsc.
  • pre-push hook ran the full workspace suite.

Not verified

  • No device run. The passkey prompt, associated domains and Digital Asset Links setup are documented, not exercised.
  • createDPoPClient with a React Native WebCrypto polyfill was not tried.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your first pull request. CI will run shortly. If the change touches package source, please add a changeset with pnpm changeset.

@sonarqubecloud

Copy link
Copy Markdown

@thegdsks
thegdsks merged commit cbc80d2 into release/wave6-2026-10 Oct 13, 2026
9 checks passed
@thegdsks
thegdsks deleted the feat/expo-passkeys branch October 13, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant