Create your app
- Sign in to the OFAuth dashboard.
- Select your organization.
- Select Create integration.
- Enter your App name.
- Select Create app.
- Open Sandbox, then Connection settings.
Save your credentials
- Copy Client ID.
- Under Client secrets, select Create secret.
- Save the new secret before closing the dialog. It is shown once.
Register callbacks before connecting customers
Before starting browser OAuth, add the application’s exact return URL under OAuth callback URIs. The scheme, host, port, path, and trailing slash must match theredirect_uri in your authorization request. Use the same host for your app and its callback so the initiating session remains available.
For example, an Express app served at http://127.0.0.1:3000 can use:
127.0.0.1 throughout that example. Configure your framework’s trusted app origin to match. Better Auth’s default callback is /api/auth/callback/ofauth; adjust it for a custom basePath.
Live consent displays the purpose from your approved integration configuration.
Continue to the Quickstart to authorize a sample account and read its profile.