Generate and store PKCE values for later use

Key to store authorization options in sessionStorage

Options for generating PKCE values

interface GenerateAndStoreAuthUrlValues {
    callbackFactory?: JourneyCallbackFactory;
    clientId: string;
    errorParams?: string[];
    login?: "redirect" | "embedded";
    middleware?: LegacyRequestMiddleware[];
    oauthThreshold?: number;
    platformHeader?: boolean;
    prefix?: string;
    prompt?: "none" | "login" | "consent";
    query?: Record<string, string>;
    realmPath?: string;
    redirectUri: string;
    responseMode?: "fragment" | "form_post" | "pi.flow" | "query";
    responseType: ResponseType;
    scope: string;
    serverConfig?: ServerConfig;
    state?: string;
    successParams?: string[];
    tokenStore?: CustomStorageObject | "sessionStorage" | "localStorage";
    tree?: string;
    type?: string;
    verifier?: string;
}

Hierarchy (View Summary)

Properties

callbackFactory?: JourneyCallbackFactory
clientId: string

These four properties clientid, scope, responseType and redirectUri are required when using this type, which are not required when defining Config.

errorParams?: string[]
login?: "redirect" | "embedded"
oauthThreshold?: number
platformHeader?: boolean
prefix?: string
prompt?: "none" | "login" | "consent"
query?: Record<string, string>
realmPath?: string
redirectUri: string
responseMode?: "fragment" | "form_post" | "pi.flow" | "query"
responseType: ResponseType
scope: string
serverConfig?: ServerConfig
state?: string
successParams?: string[]
tokenStore?: CustomStorageObject | "sessionStorage" | "localStorage"
tree?: string
type?: string
verifier?: string