/v1/apps/{app_id}/auth-config/providers/{provider}AuthPartially update the config for an (app, provider). Only top-level keys present in `config` are changed; omitted keys — secrets included — keep their stored values. The merged config is validated by the provider impl's `parseConfig`; 404 if the provider is not configured yet (create it with PUT).
Path parameters
app_id*stringId of the app.
provider*stringThe sign-in provider: `apple`, `google`, `github`, `microsoft`, or `oidc-<key>` for an OpenID Connect provider you added (the key is 1 to 32 lowercase letters, digits or hyphens that you choose, for example `oidc-okta`).
Request body
configobjectPARTIAL provider config. Only top-level keys present here are changed; omitted keys — secrets included — keep their stored values, so you can update e.g. an Apple service_id without re-uploading the private key. The merged result is validated by the provider impl's `parseConfig` before storage.
enabledbooleanFlip the provider live/inactive without touching config.
Response · 200
provider*stringThe sign-in provider: `apple`, `google`, `github`, `microsoft`, or `oidc-<key>` for an OpenID Connect provider you added (the key is 1 to 32 lowercase letters, digits or hyphens that you choose, for example `oidc-okta`).
Example: "google"
enabled*booleanWhether the provider is enabled.
config*objectCustomer-safe view of the stored config. Public identifiers and metadata only — secrets (Apple private key, Google client secret, …) NEVER appear in the response. `private_key_present: true` is the only acknowledgement that a key is on file.
last_check_at*string · date-timeWhen the credential check last ran. Null until it has run for the saved credentials.
last_check_result*objectResult of the last credential check (run on every save and on `POST …/{provider}/check`). `credentials_valid`: the provider recognised the client id and secret (it only refused the dummy sign-in code we sent). `credentials_rejected`: the provider does not accept the client id or secret; sign-in with this provider is blocked until they are fixed. `inconclusive`: the provider could not be reached or gave an answer we cannot read; nothing is blocked.
last_check_error*stringThe provider's OAuth error code from the last check, if any.
Example: "invalid_client"
created_at*stringWhen the provider was created (ISO 8601).
updated_at*stringWhen the provider was last changed (ISO 8601).
Example
Request
PATCH https://api.auth.productcraft.co/v1/apps/{app_id}/auth-config/providers/{provider}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"config": {},
"enabled": false
}import { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const providerDetail = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").authConfig.providers.update("google", { config: {} });auth.admin.app(…).authConfig.providers.update(provider, params?, options?): Auth.ProviderDetail
Response
{
"provider": "google",
"enabled": false,
"config": {},
"last_check_at": "2026-01-01T00:00:00.000Z",
"last_check_result": {},
"last_check_error": "invalid_client",
"created_at": "string",
"updated_at": "string"
}