@dereekb/firebase 13.11.8 → 13.11.10

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": "@dereekb/firebase",
3
- "version": "13.11.8",
3
+ "version": "13.11.10",
4
4
  "sideEffects": false,
5
5
  "exports": {
6
6
  "./test": {
@@ -18,10 +18,10 @@
18
18
  }
19
19
  },
20
20
  "peerDependencies": {
21
- "@dereekb/util": "13.11.8",
22
- "@dereekb/date": "13.11.8",
23
- "@dereekb/model": "13.11.8",
24
- "@dereekb/rxjs": "13.11.8",
21
+ "@dereekb/util": "13.11.10",
22
+ "@dereekb/date": "13.11.10",
23
+ "@dereekb/model": "13.11.10",
24
+ "@dereekb/rxjs": "13.11.10",
25
25
  "@firebase/rules-unit-testing": "5.0.0",
26
26
  "arktype": "^2.2.0",
27
27
  "date-fns": "^4.1.0",
@@ -62,8 +62,15 @@ export interface OAuthInteractionConsentRequest {
62
62
  */
63
63
  readonly approved: boolean;
64
64
  /**
65
- * Optional subset of OIDC scopes to grant. Must be a subset of
66
- * `prompt.details.missingOIDCScope`.
65
+ * Optional subset of OIDC scopes to grant. Each value must be in either
66
+ * `prompt.details.missingOIDCScope` or already encountered on the
67
+ * existing Grant (granted or rejected previously). Values not in
68
+ * either set return `400 BAD_REQUEST`.
69
+ *
70
+ * Already-encountered values are accepted as silent no-ops, which lets a
71
+ * `prompt=consent` re-display submit the full requested scope set from
72
+ * the auth URL without rejection when the user has previously authorized
73
+ * the client.
67
74
  *
68
75
  * `openid` is always added by the server when it was requested,
69
76
  * regardless of whether it appears here. When omitted, every
@@ -71,16 +78,19 @@ export interface OAuthInteractionConsentRequest {
71
78
  */
72
79
  readonly grantedOIDCScopes?: readonly OidcScope[];
73
80
  /**
74
- * Optional subset of OIDC claims to grant. Must be a subset of
75
- * `prompt.details.missingOIDCClaims`. When omitted, every missing claim is granted.
81
+ * Optional subset of OIDC claims to grant. Each value must be in either
82
+ * `prompt.details.missingOIDCClaims` or already encountered on the
83
+ * existing Grant. Values in neither return `400 BAD_REQUEST`.
84
+ * When omitted, every missing claim is granted.
76
85
  */
77
86
  readonly grantedOIDCClaims?: readonly string[];
78
87
  /**
79
88
  * Optional subset of resource scopes to grant per resource indicator.
80
- * Each entry's array must be a subset of the corresponding entry in
81
- * `prompt.details.missingResourceScopes`. When omitted, every missing
82
- * resource scope is granted. When an indicator is omitted, that
83
- * indicator's resource scopes are granted in full.
89
+ * Each entry's array values must be in either the corresponding entry in
90
+ * `prompt.details.missingResourceScopes` or already encountered on the
91
+ * existing Grant for that indicator. Values in neither return `400 BAD_REQUEST`.
92
+ * When omitted, every missing resource scope is granted. When an
93
+ * indicator is omitted, that indicator's resource scopes are granted in full.
84
94
  */
85
95
  readonly grantedResourceScopes?: Readonly<Record<string, readonly string[]>>;
86
96
  }
package/test/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/firebase/test",
3
- "version": "13.11.8",
3
+ "version": "13.11.10",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.11.8",
6
- "@dereekb/firebase": "13.11.8",
7
- "@dereekb/model": "13.11.8",
8
- "@dereekb/rxjs": "13.11.8",
9
- "@dereekb/util": "13.11.8",
5
+ "@dereekb/date": "13.11.10",
6
+ "@dereekb/firebase": "13.11.10",
7
+ "@dereekb/model": "13.11.10",
8
+ "@dereekb/rxjs": "13.11.10",
9
+ "@dereekb/util": "13.11.10",
10
10
  "@firebase/rules-unit-testing": "5.0.0",
11
11
  "date-fns": "^4.1.0",
12
12
  "firebase": "^12.12.1",