@atproto/oauth-provider 0.2.4 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/account/account-store.js +3 -3
  3. package/dist/account/account-store.js.map +1 -1
  4. package/dist/assets/app/bundle-manifest.json +2 -2
  5. package/dist/assets/app/main.js +3 -3
  6. package/dist/assets/app/main.js.map +1 -1
  7. package/dist/assets/asset.d.ts +0 -1
  8. package/dist/assets/asset.d.ts.map +1 -1
  9. package/dist/assets/assets-middleware.js +1 -2
  10. package/dist/assets/assets-middleware.js.map +1 -1
  11. package/dist/assets/index.js +2 -2
  12. package/dist/assets/index.js.map +1 -1
  13. package/dist/client/client-auth.js +2 -3
  14. package/dist/client/client-auth.js.map +1 -1
  15. package/dist/client/client-manager.d.ts +1 -1
  16. package/dist/client/client-manager.d.ts.map +1 -1
  17. package/dist/client/client-manager.js +3 -4
  18. package/dist/client/client-manager.js.map +1 -1
  19. package/dist/client/client-store.js +3 -4
  20. package/dist/client/client-store.js.map +1 -1
  21. package/dist/client/client-utils.d.ts +0 -1
  22. package/dist/client/client-utils.d.ts.map +1 -1
  23. package/dist/client/client-utils.js +2 -3
  24. package/dist/client/client-utils.js.map +1 -1
  25. package/dist/device/device-details.d.ts +0 -1
  26. package/dist/device/device-details.d.ts.map +1 -1
  27. package/dist/device/device-details.js +3 -3
  28. package/dist/device/device-details.js.map +1 -1
  29. package/dist/device/device-id.d.ts.map +1 -1
  30. package/dist/device/device-manager.d.ts +1 -2
  31. package/dist/device/device-manager.d.ts.map +1 -1
  32. package/dist/device/device-store.js +2 -3
  33. package/dist/device/device-store.js.map +1 -1
  34. package/dist/device/session-id.d.ts.map +1 -1
  35. package/dist/dpop/dpop-manager.d.ts +0 -1
  36. package/dist/dpop/dpop-manager.d.ts.map +1 -1
  37. package/dist/lib/html/build-document.d.ts +0 -1
  38. package/dist/lib/html/build-document.d.ts.map +1 -1
  39. package/dist/lib/html/escapers.js +4 -5
  40. package/dist/lib/html/escapers.js.map +1 -1
  41. package/dist/lib/html/util.js +2 -3
  42. package/dist/lib/html/util.js.map +1 -1
  43. package/dist/lib/http/accept.d.ts +0 -1
  44. package/dist/lib/http/accept.d.ts.map +1 -1
  45. package/dist/lib/http/accept.js +1 -2
  46. package/dist/lib/http/accept.js.map +1 -1
  47. package/dist/lib/http/context.js +1 -2
  48. package/dist/lib/http/context.js.map +1 -1
  49. package/dist/lib/http/method.d.ts +0 -1
  50. package/dist/lib/http/method.d.ts.map +1 -1
  51. package/dist/lib/http/method.js +1 -2
  52. package/dist/lib/http/method.js.map +1 -1
  53. package/dist/lib/http/middleware.d.ts +0 -1
  54. package/dist/lib/http/middleware.d.ts.map +1 -1
  55. package/dist/lib/http/middleware.js +4 -5
  56. package/dist/lib/http/middleware.js.map +1 -1
  57. package/dist/lib/http/parser.d.ts +2 -5
  58. package/dist/lib/http/parser.d.ts.map +1 -1
  59. package/dist/lib/http/parser.js +2 -2
  60. package/dist/lib/http/parser.js.map +1 -1
  61. package/dist/lib/http/path.js +1 -2
  62. package/dist/lib/http/path.js.map +1 -1
  63. package/dist/lib/http/request.d.ts +0 -1
  64. package/dist/lib/http/request.d.ts.map +1 -1
  65. package/dist/lib/http/request.js +9 -10
  66. package/dist/lib/http/request.js.map +1 -1
  67. package/dist/lib/http/response.d.ts +0 -3
  68. package/dist/lib/http/response.d.ts.map +1 -1
  69. package/dist/lib/http/response.js +7 -8
  70. package/dist/lib/http/response.js.map +1 -1
  71. package/dist/lib/http/route.d.ts +0 -1
  72. package/dist/lib/http/route.d.ts.map +1 -1
  73. package/dist/lib/http/route.js +1 -2
  74. package/dist/lib/http/route.js.map +1 -1
  75. package/dist/lib/http/router.d.ts +2 -4
  76. package/dist/lib/http/router.d.ts.map +1 -1
  77. package/dist/lib/http/stream.d.ts +2 -7
  78. package/dist/lib/http/stream.d.ts.map +1 -1
  79. package/dist/lib/http/stream.js +5 -5
  80. package/dist/lib/http/stream.js.map +1 -1
  81. package/dist/lib/http/types.d.ts +0 -1
  82. package/dist/lib/http/types.d.ts.map +1 -1
  83. package/dist/lib/http/url.d.ts +0 -1
  84. package/dist/lib/http/url.d.ts.map +1 -1
  85. package/dist/lib/http/url.js +1 -2
  86. package/dist/lib/http/url.js.map +1 -1
  87. package/dist/lib/redis.d.ts.map +1 -1
  88. package/dist/lib/redis.js +7 -6
  89. package/dist/lib/redis.js.map +1 -1
  90. package/dist/lib/util/cast.js +1 -2
  91. package/dist/lib/util/cast.js.map +1 -1
  92. package/dist/lib/util/crypto.js +2 -2
  93. package/dist/lib/util/crypto.js.map +1 -1
  94. package/dist/lib/util/date.js +2 -3
  95. package/dist/lib/util/date.js.map +1 -1
  96. package/dist/lib/util/hostname.d.ts +0 -1
  97. package/dist/lib/util/hostname.d.ts.map +1 -1
  98. package/dist/lib/util/hostname.js +4 -5
  99. package/dist/lib/util/hostname.js.map +1 -1
  100. package/dist/lib/util/redirect-uri.js +1 -2
  101. package/dist/lib/util/redirect-uri.js.map +1 -1
  102. package/dist/lib/util/time.js +1 -2
  103. package/dist/lib/util/time.js.map +1 -1
  104. package/dist/lib/util/well-known.d.ts +0 -1
  105. package/dist/lib/util/well-known.d.ts.map +1 -1
  106. package/dist/lib/util/well-known.js +1 -2
  107. package/dist/lib/util/well-known.js.map +1 -1
  108. package/dist/metadata/build-metadata.d.ts.map +1 -1
  109. package/dist/metadata/build-metadata.js +4 -4
  110. package/dist/metadata/build-metadata.js.map +1 -1
  111. package/dist/oauth-provider.d.ts +1 -2
  112. package/dist/oauth-provider.d.ts.map +1 -1
  113. package/dist/oauth-verifier.d.ts +1 -2
  114. package/dist/oauth-verifier.d.ts.map +1 -1
  115. package/dist/output/build-authorize-data.js +1 -2
  116. package/dist/output/build-authorize-data.js.map +1 -1
  117. package/dist/output/build-error-payload.js +2 -3
  118. package/dist/output/build-error-payload.js.map +1 -1
  119. package/dist/output/customization.d.ts +1 -1
  120. package/dist/output/customization.d.ts.map +1 -1
  121. package/dist/output/customization.js +3 -4
  122. package/dist/output/customization.js.map +1 -1
  123. package/dist/output/output-manager.d.ts +0 -1
  124. package/dist/output/output-manager.d.ts.map +1 -1
  125. package/dist/output/send-authorize-redirect.d.ts +0 -1
  126. package/dist/output/send-authorize-redirect.d.ts.map +1 -1
  127. package/dist/output/send-authorize-redirect.js +1 -2
  128. package/dist/output/send-authorize-redirect.js.map +1 -1
  129. package/dist/output/send-web-page.d.ts +0 -1
  130. package/dist/output/send-web-page.d.ts.map +1 -1
  131. package/dist/output/send-web-page.js +2 -3
  132. package/dist/output/send-web-page.js.map +1 -1
  133. package/dist/replay/replay-store-redis.d.ts +1 -1
  134. package/dist/replay/replay-store-redis.d.ts.map +1 -1
  135. package/dist/replay/replay-store.js +3 -4
  136. package/dist/replay/replay-store.js.map +1 -1
  137. package/dist/request/code.d.ts +1 -1
  138. package/dist/request/code.d.ts.map +1 -1
  139. package/dist/request/request-data.d.ts.map +1 -1
  140. package/dist/request/request-id.d.ts.map +1 -1
  141. package/dist/request/request-manager.d.ts.map +1 -1
  142. package/dist/request/request-manager.js +2 -1
  143. package/dist/request/request-manager.js.map +1 -1
  144. package/dist/request/request-store-redis.d.ts +1 -1
  145. package/dist/request/request-store-redis.d.ts.map +1 -1
  146. package/dist/request/request-store-redis.js.map +1 -1
  147. package/dist/request/request-store.js +2 -3
  148. package/dist/request/request-store.js.map +1 -1
  149. package/dist/request/request-uri.js +3 -3
  150. package/dist/request/request-uri.js.map +1 -1
  151. package/dist/signer/signed-token-payload.d.ts +90 -90
  152. package/dist/signer/signed-token-payload.d.ts.map +1 -1
  153. package/dist/signer/signer.d.ts +6 -6
  154. package/dist/signer/signer.d.ts.map +1 -1
  155. package/dist/token/refresh-token.d.ts +1 -1
  156. package/dist/token/refresh-token.d.ts.map +1 -1
  157. package/dist/token/token-claims.d.ts +90 -90
  158. package/dist/token/token-claims.d.ts.map +1 -1
  159. package/dist/token/token-id.d.ts +1 -1
  160. package/dist/token/token-id.d.ts.map +1 -1
  161. package/dist/token/token-store.js +2 -3
  162. package/dist/token/token-store.js.map +1 -1
  163. package/dist/token/verify-token-claims.js +1 -2
  164. package/dist/token/verify-token-claims.js.map +1 -1
  165. package/package.json +4 -8
  166. package/src/client/client-manager.ts +3 -3
  167. package/src/lib/http/stream.ts +4 -2
  168. package/src/lib/redis.ts +5 -3
  169. package/src/metadata/build-metadata.ts +6 -3
  170. package/src/oauth-provider.ts +1 -1
  171. package/src/oauth-verifier.ts +1 -1
  172. package/src/replay/replay-store-redis.ts +1 -1
  173. package/src/request/request-manager.ts +4 -1
  174. package/src/request/request-store-redis.ts +2 -1
  175. package/tsconfig.backend.tsbuildinfo +1 -0
  176. package/tsconfig.frontend.tsbuildinfo +1 -0
  177. package/tsconfig.tools.tsbuildinfo +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atproto/oauth-provider
2
2
 
3
+ ## 0.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2902](https://github.com/bluesky-social/atproto/pull/2902) [`8f2b80a0d`](https://github.com/bluesky-social/atproto/commit/8f2b80a0dcf118652452ea09764a947b09991e0f) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Better report invalid content-encoding errors
8
+
9
+ - [#2871](https://github.com/bluesky-social/atproto/pull/2871) [`9d40ccbb6`](https://github.com/bluesky-social/atproto/commit/9d40ccbb69103fae9aae7e3cec31e9b3116f3ba2) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Allow using different ioredis version
10
+
11
+ - [#2871](https://github.com/bluesky-social/atproto/pull/2871) [`9d40ccbb6`](https://github.com/bluesky-social/atproto/commit/9d40ccbb69103fae9aae7e3cec31e9b3116f3ba2) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Use fetch()'s "cache" option instead of headers to force caching behavior
12
+
13
+ - [#2874](https://github.com/bluesky-social/atproto/pull/2874) [`7f26b1765`](https://github.com/bluesky-social/atproto/commit/7f26b176526b9856a8f61faca6f065f0afd43abf) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Improve error message when invalid client id used during code exchange
14
+
15
+ - Updated dependencies [[`7f26b1765`](https://github.com/bluesky-social/atproto/commit/7f26b176526b9856a8f61faca6f065f0afd43abf), [`9d40ccbb6`](https://github.com/bluesky-social/atproto/commit/9d40ccbb69103fae9aae7e3cec31e9b3116f3ba2), [`9d40ccbb6`](https://github.com/bluesky-social/atproto/commit/9d40ccbb69103fae9aae7e3cec31e9b3116f3ba2), [`7f26b1765`](https://github.com/bluesky-social/atproto/commit/7f26b176526b9856a8f61faca6f065f0afd43abf), [`9d40ccbb6`](https://github.com/bluesky-social/atproto/commit/9d40ccbb69103fae9aae7e3cec31e9b3116f3ba2), [`7f26b1765`](https://github.com/bluesky-social/atproto/commit/7f26b176526b9856a8f61faca6f065f0afd43abf)]:
16
+ - @atproto/oauth-types@0.2.0
17
+
18
+ ## 0.2.5
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`80450cbf2`](https://github.com/bluesky-social/atproto/commit/80450cbf2ca27967ee9fe1a5f4bc590b26f1e6b2)]:
23
+ - @atproto-labs/fetch-node@0.1.3
24
+
3
25
  ## 0.2.4
4
26
 
5
27
  ### Patch Changes
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.asAccountStore = exports.isAccountStore = exports.signInCredentialsSchema = void 0;
6
+ exports.signInCredentialsSchema = void 0;
7
+ exports.isAccountStore = isAccountStore;
8
+ exports.asAccountStore = asAccountStore;
7
9
  const zod_1 = __importDefault(require("zod"));
8
10
  exports.signInCredentialsSchema = zod_1.default.object({
9
11
  username: zod_1.default.string(),
@@ -23,12 +25,10 @@ function isAccountStore(implementation) {
23
25
  typeof implementation.listDeviceAccounts === 'function' &&
24
26
  typeof implementation.removeDeviceAccount === 'function');
25
27
  }
26
- exports.isAccountStore = isAccountStore;
27
28
  function asAccountStore(implementation) {
28
29
  if (!implementation || !isAccountStore(implementation)) {
29
30
  throw new Error('Invalid AccountStore implementation');
30
31
  }
31
32
  return implementation;
32
33
  }
33
- exports.asAccountStore = asAccountStore;
34
34
  //# sourceMappingURL=account-store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-store.js","sourceRoot":"","sources":["../../src/account/account-store.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AAQN,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IAEpB;;;;OAIG;IACH,QAAQ,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAE/C,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA;AAwCF,SAAgB,cAAc,CAC5B,cAA+D;IAE/D,OAAO,CACL,OAAO,cAAc,CAAC,mBAAmB,KAAK,UAAU;QACxD,OAAO,cAAc,CAAC,gBAAgB,KAAK,UAAU;QACrD,OAAO,cAAc,CAAC,mBAAmB,KAAK,UAAU;QACxD,OAAO,cAAc,CAAC,kBAAkB,KAAK,UAAU;QACvD,OAAO,cAAc,CAAC,mBAAmB,KAAK,UAAU,CACzD,CAAA;AACH,CAAC;AAVD,wCAUC;AAED,SAAgB,cAAc,CAC5B,cAAgE;IAEhE,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IACxD,CAAC;IACD,OAAO,cAAc,CAAA;AACvB,CAAC;AAPD,wCAOC"}
1
+ {"version":3,"file":"account-store.js","sourceRoot":"","sources":["../../src/account/account-store.ts"],"names":[],"mappings":";;;;;;AA4DA,wCAUC;AAED,wCAOC;AA/ED,8CAAmB;AAQN,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IAEpB;;;;OAIG;IACH,QAAQ,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAE/C,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA;AAwCF,SAAgB,cAAc,CAC5B,cAA+D;IAE/D,OAAO,CACL,OAAO,cAAc,CAAC,mBAAmB,KAAK,UAAU;QACxD,OAAO,cAAc,CAAC,gBAAgB,KAAK,UAAU;QACrD,OAAO,cAAc,CAAC,mBAAmB,KAAK,UAAU;QACxD,OAAO,cAAc,CAAC,kBAAkB,KAAK,UAAU;QACvD,OAAO,cAAc,CAAC,mBAAmB,KAAK,UAAU,CACzD,CAAA;AACH,CAAC;AAED,SAAgB,cAAc,CAC5B,cAAgE;IAEhE,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IACxD,CAAC;IACD,OAAO,cAAc,CAAA;AACvB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  "main.js": {
3
3
  "type": "chunk",
4
4
  "mime": "application/javascript",
5
- "sha256": "zLbE90X8neJAt0DNQJDxFWVB5VKPwFAn+oHLaGabJDk=",
5
+ "sha256": "L2t+c+1NjNYnPZxVBqhf1NUikWRTfGV2cCZS9Lp4eRU=",
6
6
  "dynamicImports": [],
7
7
  "isDynamicEntry": false,
8
8
  "isEntry": true,
@@ -12,7 +12,7 @@
12
12
  "main.js.map": {
13
13
  "type": "asset",
14
14
  "mime": "application/json",
15
- "sha256": "4JmWUILMg93hL86XxmQfREPKGPzz89KRbzDcel2Dmi8="
15
+ "sha256": "CaolEfLbfWGacOIi2vliD1KViylOPZzPhRTGrD9Igxw="
16
16
  },
17
17
  "main.css": {
18
18
  "type": "asset",