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. Use getVercelOidcToken from the @vercel/oidc package with the audience option. Vercel then gives a token with the Dodo Payments audience.
SDK Usage
The SDK gives the default Dodo Payments audience to the provider function. Request the Vercel token with this audience:TypeScript