@dokebi/oauth 0.1.2 → 0.1.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.
package/dist/clients.js CHANGED
@@ -84,7 +84,8 @@ export class ClientDirectory {
84
84
  if (registered)
85
85
  return { ok: true, client: registered };
86
86
  if (this.isDocument(clientId)) {
87
- const now = Date.now();
87
+ // D-0254: the document and refusal copies age on the monotonic clock.
88
+ const now = performance.now();
88
89
  const cached = this.#documents.get(clientId, now);
89
90
  if (cached)
90
91
  return {
@@ -153,7 +154,7 @@ export class ClientDirectory {
153
154
  throw error;
154
155
  this.#refused.set(clientId, {
155
156
  error,
156
- until: Date.now() + this.#settings.cimd.refusalCacheMs,
157
+ until: performance.now() + this.#settings.cimd.refusalCacheMs,
157
158
  });
158
159
  return {
159
160
  ok: false,
package/dist/plugin.js CHANGED
@@ -749,7 +749,7 @@ function checkHost(server, logger, where, url, apps, option) {
749
749
  export function defineOAuthPlugin(settings = {}) {
750
750
  return definePlugin({
751
751
  name: 'dokebi-oauth',
752
- version: '0.1.2',
752
+ version: '0.1.3',
753
753
  core: '^0.4.2',
754
754
  options: declaration,
755
755
  contributes: [describePoint],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dokebi/oauth",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OAuth 2.1 authorization server for @dokebi/web on @dokebi/auth tokens: authorization code with PKCE, refresh rotation, revocation, client ID metadata documents, protected resource metadata and route protection.",
5
5
  "keywords": [
6
6
  "dokebi",
@@ -69,14 +69,14 @@
69
69
  }
70
70
  },
71
71
  "devDependencies": {
72
- "@dokebi/auth": "0.4.3",
73
- "@dokebi/csrf": "0.4.0",
74
- "@dokebi/db": "0.4.2",
72
+ "@dokebi/auth": "0.4.8",
73
+ "@dokebi/csrf": "0.4.3",
74
+ "@dokebi/db": "0.4.4",
75
75
  "@dokebi/rate-limit": "0.1.1",
76
- "@dokebi/redis": "0.4.1",
77
- "@dokebi/session": "0.4.7",
78
- "@dokebi/sse": "0.4.5",
79
- "@dokebi/web": "0.4.7"
76
+ "@dokebi/redis": "0.4.2",
77
+ "@dokebi/session": "0.4.10",
78
+ "@dokebi/sse": "0.4.7",
79
+ "@dokebi/web": "0.4.21"
80
80
  },
81
81
  "dokebi": {
82
82
  "schemaVersion": 2,