Kysoql
API referenceType Aliases

FirstPartyAuthorizationChallenge

Generated API reference for FirstPartyAuthorizationChallenge in @kysoql/auth.

@kysoql/auth / FirstPartyAuthorizationChallenge

type FirstPartyAuthorizationChallenge =
  | {
  kind: "authorized";
  authorizationCode: string;
}
  | {
  kind: "challenge";
  status: number;
  error: string;
  errorCode?: string;
  authSession: string;
  response: Readonly<Record<string, unknown>>;
};

Result of a first-party Salesforce authorization challenge request.

Union Members

Type Literal

{
  kind: "authorized";
  authorizationCode: string;
}
NameTypeDescription
kind"authorized"Indicates that Salesforce returned an authorization code.
authorizationCodestringAuthorization code to exchange at the token endpoint.

Type Literal

{
  kind: "challenge";
  status: number;
  error: string;
  errorCode?: string;
  authSession: string;
  response: Readonly<Record<string, unknown>>;
}
NameTypeDescription
kind"challenge"Indicates that Salesforce requires another authorization step.
statusnumberHTTP status returned for the challenge response.
errorstringSalesforce OAuth error identifier for the challenge.
errorCode?stringMore specific Salesforce error code, when supplied.
authSessionstringSession token to send when continuing the challenge flow.
responseReadonly<Record<string, unknown>>Flow-specific response fields such as login_status.

On this page