API reference
The public surface of
@thunderid/better-auth, as documented in its reference pages.thunderid()Returns a typed GenericOAuthConfig for a ThunderID issuer.
issuerrequiredstringThunderID 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.
clientIdrequiredstringOAuth client ID.
clientSecretoptionalstringOAuth client secret. Omit for public clients using tokenEndpointAuth: {method: 'none'}.
scopesoptionalstring[]Requested scopes. Defaults to ['openid', 'profile', 'email'].
tokenEndpointAuthoptionalobjectToken endpoint authentication method, for example {method: 'client_secret_post'}.
pkceoptionalbooleanForce PKCE on or off. Better Auth enables PKCE by default.
redirectURIoptionalstringOverride the callback URL. It must still resolve to Better Auth's callback route for this provider, which ends in `/callback/thunderid`.
endSessionEndpointoptionalstringRP-initiated logout endpoint. Defaults to the discovery document.
postLogoutRedirectURIoptionalstringWhere ThunderID returns the user after logout.
disableProviderLogoutoptionalbooleanSkip provider logout on sign-out. Defaults to false.
disableImplicitSignUpoptionalbooleanRequire an explicit sign-up request before creating a user. Defaults to false.
disableSignUpoptionalbooleanReject sign-in for users who do not already exist. Defaults to false.
overrideUserInfooptionalbooleanRefresh the stored user profile from ThunderID on every sign-in. Defaults to false.