Kysoql
API referenceInterfaces

AuthorizationCodeOptions

Generated API reference for AuthorizationCodeOptions in @kysoql/auth.

@kysoql/auth / AuthorizationCodeOptions

Options for exchanging a Salesforce authorization code for tokens.

Extends

  • TokenEndpointOptions.OAuthClientAuthentication

Properties

PropertyModifierTypeDescriptionInherited from
clientIdreadonlystringConnected App consumer key / OAuth client ID.-
codereadonlystringAuthorization code returned by Salesforce.-
redirectUrireadonlystringRedirect URI used for the original authorization request.-
codeVerifier?readonlystringPKCE verifier corresponding to the authorization request challenge.-
authRequestType?readonlystringHeadless Identity code exchanges can require an Auth-Request-Type header, for example "guest". Omit for ordinary web-server exchanges.-
uvidHint?readonlystringHeadless guest code exchanges require the raw UVID or UVID-bearing token in the Uvid-Hint header. Do not add the authorization-request prefix here.-
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
clientSecret?readonlystringUse only from a confidential client that can keep this secret.OAuthClientAuthentication.clientSecret
clientAssertion?readonlystringJWT client assertion accepted by Salesforce instead of clientSecret.OAuthClientAuthentication.clientAssertion
clientSecretTransport?readonly"body" | "basic"Default: body. Salesforce also accepts HTTP Basic for client secrets.OAuthClientAuthentication.clientSecretTransport

On this page