@croct/sdk 0.9.0 → 0.9.1

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/constants.js CHANGED
@@ -5,4 +5,4 @@ exports.TRACKER_ENDPOINT_URL = 'wss://api.croct.io/client/web/connect';
5
5
  exports.EVALUATION_ENDPOINT_URL = 'https://api.croct.io/client/web/evaluate';
6
6
  exports.BOOTSTRAP_ENDPOINT_URL = 'https://api.croct.io/client/web/bootstrap';
7
7
  exports.MAX_EXPRESSION_LENGTH = 300;
8
- exports.VERSION = '0.9.0';
8
+ exports.VERSION = '0.9.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croct/sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Croct SDK for JavaScript.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -20,7 +20,7 @@ exports.tokenSchema = new validation_1.ObjectType({
20
20
  required: ['iss', 'aud', 'iat'],
21
21
  properties: {
22
22
  iss: new validation_1.StringType(),
23
- aud: new validation_1.StringType(),
23
+ aud: new validation_1.UnionType(new validation_1.StringType(), new validation_1.ArrayType({ items: new validation_1.StringType() })),
24
24
  iat: new validation_1.NumberType({
25
25
  minimum: 0,
26
26
  }),
package/token/token.d.ts CHANGED
@@ -6,7 +6,7 @@ export declare type Headers = {
6
6
  };
7
7
  export declare type Claims = {
8
8
  iss: string;
9
- aud: string;
9
+ aud: string | string[];
10
10
  iat: number;
11
11
  exp?: number;
12
12
  sub?: string;