{"slug": "breaking-vercel-method-can-now-return-apple-bitbucket-chatgpt-claude-github", "title": "Vercel: method can now return \"apple\", \"bitbucket\", \"chatgpt\", \"claude\", \"github\", \"gitlab\", \"google\"", "summary": "Vercel's UserEvent.payload.method field can now return seven additional values — \"apple\", \"bitbucket\", \"chatgpt\", \"claude\", \"github\", \"gitlab\" and \"google\" — alongside the existing \"email-otp\", \"recovery-code\", \"totp\" and \"webauthn\", according to Vercel's published API specification. The change is additive on the producer side but breaks exhaustive switch statements, strict parsers and generated client enums that read UserEvent objects from the one affected Vercel operation, since code with no branch for the new values falls through to a default error.", "body_md": "## What changed\n\nProducer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.\n\nAffects `payload.method` on `UserEvent` reachable from 1 operation.\n\nNew values: `apple`, `bitbucket`, `chatgpt`, `claude`, `github`, `gitlab`, `google`.\n\ncan now return \"apple\", \"bitbucket\", \"chatgpt\", \"claude\", \"github\", \"gitlab\", \"google\"\n\n## Who is affected\n\nCode that reads Vercel's UserEvent objects, used by 1 Vercel operation.\n\n## Before and after\n\n| Where | Before | After | \n|---|---|---|\n| UserEvent.payload.method | \"email-otp\", \"recovery-code\", \"totp\", \"webauthn\" | \"apple\", \"bitbucket\", \"chatgpt\", \"claude\", \"email-otp\", \"github\", \"gitlab\", \"google\", \"recovery-code\", \"totp\", \"webauthn\" | \n\n## Code that breaks\n\n```\nswitch (response.payload.method) {\n  // existing branches …\n  // no branch for \"apple\"\n  // no branch for \"bitbucket\"\n  // no branch for \"chatgpt\"\n  // no branch for \"claude\"\n  // no branch for \"github\"\n  // no branch for \"gitlab\"\n  // no branch for \"google\"\n  default:\n    throw new Error(\"unexpected method\");\n}\n```\n\nBased on Vercel’s published API specification. [How severity is decided](https://driftwatch.et/method).", "url": "https://wpnews.pro/news/breaking-vercel-method-can-now-return-apple-bitbucket-chatgpt-claude-github", "canonical_source": "https://driftwatch.et/changes/vercel-2026-12-04-5c213226", "published_at": "2026-12-04 07:32:31+00:00", "updated_at": "2026-12-04 08:14:40.881550+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["Vercel", "UserEvent", "GitHub", "GitLab", "Bitbucket", "ChatGPT", "Claude", "Apple"], "also_reported_by": [], "takeaway": "Vercel's UserEvent.payload.method now returns seven new values (apple, bitbucket, chatgpt, claude, github, gitlab, google) on top of email-otp, recovery-code, totp and webauthn, so exhaustive switches and generated client enums must add branches or handle unknown values instead of throwing.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/breaking-vercel-method-can-now-return-apple-bitbucket-chatgpt-claude-github", "markdown": "https://wpnews.pro/news/breaking-vercel-method-can-now-return-apple-bitbucket-chatgpt-claude-github.md", "text": "https://wpnews.pro/news/breaking-vercel-method-can-now-return-apple-bitbucket-chatgpt-claude-github.txt", "jsonld": "https://wpnews.pro/news/breaking-vercel-method-can-now-return-apple-bitbucket-chatgpt-claude-github.jsonld"}}