core.medplumclient.startpkce
Home > @medplum/core > MedplumClient > startPkce
MedplumClient.startPkce() method
Starts a new PKCE flow. These PKCE values are stateful, and must survive redirects and page refreshes.
Signature:
startPkce(): Promise<{
        codeChallengeMethod: CodeChallengeMethod;
        codeChallenge: string;
    }>;
Returns:
Promise<{ codeChallengeMethod: CodeChallengeMethod; codeChallenge: string; }>
The PKCE code challenge details.