Better Auth API reference
Every option other than issuer is passed through from Better Auth's BaseOAuthProviderOptions and behaves exactly as it does for the built-in provider helpers.
Functions
thunderid()
function
Returns a typed GenericOAuthConfig for a Choreo Identity & Access Management issuer.
Options
| Name | Type | Description |
|---|---|---|
| issuer (required) | string | Choreo Identity & Access Management issuer URL, for example https://thunderid.example.com. A trailing slash is trimmed. The OIDC discovery URL is derived as {issuer}/.well-known/openid-configuration, so all endpoints come from the discovery document. |
| clientId (required) | string | OAuth client ID. |
| clientSecret (optional) | string | OAuth client secret. Omit for public clients using tokenEndpointAuth: {method: 'none'}. |
| scopes (optional) | string[] | Requested scopes. Defaults to ['openid', 'profile', 'email']. |
| tokenEndpointAuth (optional) | object | Token endpoint authentication method, for example {method: 'client_secret_post'}. |
| pkce (optional) | boolean | Force PKCE on or off. Better Auth enables PKCE by default. |
| redirectURI (optional) | string | Override the callback URL. It must still resolve to Better Auth's callback route for this provider, which ends in /callback/thunderid. |
| endSessionEndpoint (optional) | string | RP-initiated logout endpoint. Defaults to the discovery document. |
| postLogoutRedirectURI (optional) | string | Where Choreo Identity & Access Management returns the user after logout. |
| disableProviderLogout (optional) | boolean | Skip provider logout on sign-out. Defaults to false. |
| disableImplicitSignUp (optional) | boolean | Require an explicit sign-up request before creating a user. Defaults to false. |
| disableSignUp (optional) | boolean | Reject sign-in for users who do not already exist. Defaults to false. |
| overrideUserInfo (optional) | boolean | Refresh the stored user profile from Choreo Identity & Access Management on every sign-in. Defaults to false. |
Was this page helpful?