lucid-package 0.0.77 → 0.0.78

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.77",
3
+ "version": "0.0.78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -22,6 +22,7 @@ export type PackageManifest = {
22
22
  'name': string;
23
23
  'title': string;
24
24
  'tokenUrl': string;
25
+ 'refreshTokenUrl'?: string;
25
26
  'authorizationUrl': string;
26
27
  'scopes': string[];
27
28
  'domainWhitelist': string[];
@@ -124,6 +124,9 @@ function validateManifestOrThrow(manifest) {
124
124
  if (!(0, lucid_extension_sdk_1.isString)(provider['tokenUrl'])) {
125
125
  throw new Error('manifest.json: OAuth provider "tokenUrl" must be a string');
126
126
  }
127
+ if (provider['refreshTokenUrl'] && !(0, lucid_extension_sdk_1.isString)(provider['refreshTokenUrl'])) {
128
+ throw new Error('manifest.json: OAuth provider "refreshTokenUrl" must be a string');
129
+ }
127
130
  if (!(0, lucid_extension_sdk_1.isTypedArray)(lucid_extension_sdk_1.isString)(provider['scopes'])) {
128
131
  throw new Error('manifest.json: OAuth provider "scopes" must be a string array');
129
132
  }