Files
better-auth/packages
Gustavo Valverde 34060c7be4 test: adapt merged mcp and two-factor tests to next's breaking APIs
The merge auto-combined these test files without textual conflict, but they
referenced APIs next changed, so type checking failed:

- mcp.test.ts drove one (skipped) confidential-client test through the
  removed generic-oauth client (genericOAuthClient + signIn.oauth2). It now
  uses signIn.social like the surrounding tests.
- two-factor.security.test.ts read enrollment.totpURI directly; next's #9057
  made the enable response a discriminated { method } union, so the tests now
  narrow on method === "totp" before reading totpURI.

tsc --build is clean across the workspace.

(cherry picked from commit d3cd3c2eb39f0c7209f45ff27ac4b943250b93be)
2026-05-31 00:10:36 +01:00
..
2026-05-09 19:28:11 +00:00
2026-05-31 00:10:16 +01:00
2026-05-31 00:10:16 +01:00
2026-05-31 00:10:16 +01:00
2026-05-29 22:28:58 +01:00
2026-05-31 00:10:16 +01:00
2026-05-31 00:10:16 +01:00
2026-05-29 22:28:58 +01:00
2026-05-29 22:28:58 +01:00