@medplum/agent 2.2.2 → 2.2.3

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.
@@ -40397,7 +40397,7 @@ var tn = class extends ge {
40397
40397
  }
40398
40398
  getExternalAuthRedirectUri(t, n, i2, o, s = true) {
40399
40399
  let a = new URL(t);
40400
- if (a.searchParams.set("response_type", "code"), a.searchParams.set("client_id", n), a.searchParams.set("redirect_uri", i2), a.searchParams.set("scope", "openid profile email"), a.searchParams.set("state", JSON.stringify(o)), s) {
40400
+ if (a.searchParams.set("response_type", "code"), a.searchParams.set("client_id", n), a.searchParams.set("redirect_uri", i2), a.searchParams.set("scope", o.scope ?? "openid profile email"), a.searchParams.set("state", JSON.stringify(o)), s) {
40401
40401
  let { codeChallenge: u2, codeChallengeMethod: l2 } = o;
40402
40402
  if (!l2)
40403
40403
  throw new Error("`LoginRequest` for external auth must include a `codeChallengeMethod`.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/agent",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Medplum Agent",
5
5
  "homepage": "https://www.medplum.com/",
6
6
  "bugs": {