Setup
1
Scopes
Default scopes:openid, email, profile
Scopes the app does not have enabled in its dashboard settings are dropped by Vercel.
How it works
- This uses the Sign in with Vercel authorization server:
https://vercel.com/oauth/authorize,https://api.vercel.com/login/oauth/tokenandhttps://api.vercel.com/login/oauth/userinfo. - PKCE with S256 is required and always sent. Client credentials go in the form body.
- The userinfo call is a POST with the access token as a Bearer header. It returns
sub,email,email_verified,name,preferred_usernameandpicture. The email counts as verified only whenemail_verifiedis true. - Add
offline_accesstoscopesto receive a refresh token.
vercelProvider (the older preset) targets Vercel’s marketplace integration endpoints and cannot read the profile. It is still exported for existing code. Use createVercelProvider for new setups.