Skip to main content

Get credentials

1

Create an OAuth application

Go to Coinbase Developer Platform and create a new OAuth2 application.Set the Redirect URI to:
2

Copy your credentials

After creating the app, copy the Client ID and Client Secret from the application settings.

Configuration

lib/theauth.ts

Scopes

Default scope: wallet:user:read, wallet:user:email
Coinbase scopes use a namespaced format (wallet:resource:action). Request only the scopes your app needs. Users see the full permission list during authorization.
This is a preset built on the generic OIDC factory, which reads the user from https://api.coinbase.com/v2/user and requires the response to contain the OIDC sub and email fields. That endpoint returns a data.id field nested under data, so sign-in is expected to fail with Coinbase userinfo response missing required "sub" field. This preset has not been verified against the live service.

Endpoints

Last modified on October 7, 2026