vercel provider.
Provider Settings
The team slug has lowercase letters, digits, and hyphens only.
Required Claims
The mapping must pin bothowner_id (the team id) and project_id. Add environment to limit the trust to one environment:
Project Configuration
- In the Vercel project, open Settings → Security and turn on Secure backend access with OIDC federation.
- Select the Team issuer mode.
- Add
DODO_PAYMENTS_IDENTITY_PROVIDER_IDwith the valuewip_...to the project environment variables.
Token Audience
The defaultaud claim of a Vercel OIDC token is https://vercel.com/<team_slug>. Dodo Payments does not accept this audience. The vercel() helper exchanges the Vercel token at https://oidc.vercel.com/~token for a token with the Dodo Payments audience. You do not have to do more steps.
This exchange is available from these SDK versions: TypeScript 2.59.0, Python 1.125.0, Go v1.125.0, Java 1.125.0, Kotlin 1.125.0, Ruby 2.37.0, PHP 6.34.0, C# 6.43.0, Rust 1.127.0, and the Terraform provider 0.3.2. An older version sends the token with the default Vercel audience, and the exchange fails.