cd /news/developer-tools/breaking-vercel-method-can-now-retur… · home › topics › developer-tools › article
[ARTICLE · art-181658] src=driftwatch.et ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Vercel: method can now return "apple", "bitbucket", "chatgpt", "claude", "github", "gitlab", "google"

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.

key 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.

read1 min views4 publishedDec 4, 2026

What changed #

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects payload.method on UserEvent reachable from 1 operation.

New values: apple, bitbucket, chatgpt, claude, github, gitlab, google.

can now return "apple", "bitbucket", "chatgpt", "claude", "github", "gitlab", "google"

Who is affected #

Code that reads Vercel's UserEvent objects, used by 1 Vercel operation.

Before and after #

Where Before After
UserEvent.payload.method "email-otp", "recovery-code", "totp", "webauthn" "apple", "bitbucket", "chatgpt", "claude", "email-otp", "github", "gitlab", "google", "recovery-code", "totp", "webauthn"

Code that breaks #

switch (response.payload.method) {
  // existing branches …
  // no branch for "apple"
  // no branch for "bitbucket"
  // no branch for "chatgpt"
  // no branch for "claude"
  // no branch for "github"
  // no branch for "gitlab"
  // no branch for "google"
  default:
    throw new Error("unexpected method");
}

Based on Vercel’s published API specification. How severity is decided.

── more in #developer-tools 4 stories · sorted by recency
── more on @vercel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/breaking-vercel-meth…] indexed:0 read:1min 2026-12-04 · —