Kysoql
API referenceInterfaces

ClientCredentialsOptions

Generated API reference for ClientCredentialsOptions in @kysoql/auth.

@kysoql/auth / ClientCredentialsOptions

Options for the Salesforce OAuth client-credentials grant.

Extends

  • TokenEndpointOptions

Properties

PropertyModifierTypeDescriptionInherited from
clientIdreadonlystringSalesforce My Domain origin configured for client credentials.-
clientSecretreadonlystringConnected App client secret used by the client-credentials grant.-
clientSecretTransport?readonly"body" | "basic"Default: body. Salesforce also accepts HTTP Basic.-
loginUrlreadonlystringSalesforce login or My Domain base URL for the token endpoint.TokenEndpointOptions.loginUrl
refreshTokenStore?readonlyRefreshTokenStorePersist a newly issued/rotated refresh token before returning the session.TokenEndpointOptions.refreshTokenStore
signal?readonlyAbortSignalCancels this request.TokenEndpointOptions.signal
timeoutMs?readonlynumberPer HTTP request. Default: 30 seconds.TokenEndpointOptions.timeoutMs
fetch?readonly(input, init?) => Promise<Response>Native fetch by default. Primarily useful for tests and custom runtimes.TokenEndpointOptions.fetch

On this page