/v1/apps/{app_id}/auth-config/providers/{provider}AuthGet the config for one (app, provider). Secrets are redacted — `private_key_present: true` is the only acknowledgement that a private key is on file.
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`).
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
GET https://api.auth.productcraft.co/v1/apps/{app_id}/auth-config/providers/{provider}
Authorization: Bearer YOUR_TOKENimport { 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.retrieve("google");auth.admin.app(…).authConfig.providers.retrieve(provider, 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"
}