@medplum/core 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -2232,9 +2232,10 @@ export declare class MedplumClient extends EventTarget_2 {
2232
2232
  * @param clientId - The external client ID.
2233
2233
  * @param redirectUri - The external identity provider redirect URI.
2234
2234
  * @param baseLogin - The Medplum login request.
2235
+ * @param pkceEnabled - Whether `PKCE` should be enabled for this external auth request. Defaults to `true`.
2235
2236
  * @category Authentication
2236
2237
  */
2237
- signInWithExternalAuth(authorizeUrl: string, clientId: string, redirectUri: string, baseLogin: BaseLoginRequest): Promise<void>;
2238
+ signInWithExternalAuth(authorizeUrl: string, clientId: string, redirectUri: string, baseLogin: BaseLoginRequest, pkceEnabled?: boolean): Promise<void>;
2238
2239
  /**
2239
2240
  * Exchange an external access token for a Medplum access token.
2240
2241
  * @param token - The access token that was generated by the external identity provider.
@@ -2249,10 +2250,11 @@ export declare class MedplumClient extends EventTarget_2 {
2249
2250
  * @param clientId - The external client ID.
2250
2251
  * @param redirectUri - The external identity provider redirect URI.
2251
2252
  * @param loginRequest - The Medplum login request.
2253
+ * @param pkceEnabled - Whether `PKCE` should be enabled for this external auth request. Defaults to `true`.
2252
2254
  * @returns The external identity provider redirect URI.
2253
2255
  * @category Authentication
2254
2256
  */
2255
- getExternalAuthRedirectUri(authorizeUrl: string, clientId: string, redirectUri: string, loginRequest: BaseLoginRequest): string;
2257
+ getExternalAuthRedirectUri(authorizeUrl: string, clientId: string, redirectUri: string, loginRequest: BaseLoginRequest, pkceEnabled?: boolean): string;
2256
2258
  /**
2257
2259
  * Builds a FHIR URL from a collection of URL path components.
2258
2260
  * For example, `buildUrl('/Patient', '123')` returns `fhir/R4/Patient/123`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/core",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "Medplum TS/JS Library",
5
5
  "keywords": [
6
6
  "medplum",