core.medplumclient.startpkce | Medplum

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.