lucid-package 0.0.41 → 0.0.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -25,6 +25,7 @@ export declare type PackageManifest = {
25
25
  'authorizationUrl': string;
26
26
  'scopes': string[];
27
27
  'domainWhitelist': string[];
28
+ 'usePkce'?: boolean;
28
29
  }[];
29
30
  'mergeProviders'?: {
30
31
  'name': string;
@@ -119,6 +119,9 @@ function validateManifestOrThrow(manifest) {
119
119
  if (provider['grantType'] === 'clientCredentials' && provider['authorizationUrl']) {
120
120
  throw new Error('manifest.json: OAuth provider "authorizationUrl" must not be provided when grantType is "clientCredentials"');
121
121
  }
122
+ if (provider['grantType'] === 'clientCredentials' && provider['usePkce']) {
123
+ throw new Error('manifest.json: OAuth provider "usePkce" must not be provided when grantType is "clientCredentials"');
124
+ }
122
125
  if (!(0, checks_1.isString)(provider['tokenUrl'])) {
123
126
  throw new Error('manifest.json: OAuth provider "tokenUrl" must be a string');
124
127
  }