## MedplumClient.startPkce() method [​](/content/docs/sdk/core.medplumclient.startpkce#medplumclientstartpkce-method "Direct link to MedplumClient.startPkce(/index.html) method")

Starts a new PKCE flow. These PKCE values are stateful, and must survive redirects and page refreshes.

**Signature:**

```typescript
startPkce(): Promise<{

codeChallengeMethod: CodeChallengeMethod;

codeChallenge: string;

}>;
```

**Returns:**

Promise<{ codeChallengeMethod: [CodeChallengeMethod](/content/docs/sdk/core.codechallengemethod); codeChallenge: string; }>

The PKCE code challenge details.

- [MedplumClient.startPkce() method](/content/docs/sdk/core.medplumclient.startpkce#medplumclientstartpkce-method/index.html)
