@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.
- package/CHANGELOG.md +22 -0
- package/dist/account/account-store.js +3 -3
- package/dist/account/account-store.js.map +1 -1
- package/dist/assets/app/bundle-manifest.json +2 -2
- package/dist/assets/app/main.js +3 -3
- package/dist/assets/app/main.js.map +1 -1
- package/dist/assets/asset.d.ts +0 -1
- package/dist/assets/asset.d.ts.map +1 -1
- package/dist/assets/assets-middleware.js +1 -2
- package/dist/assets/assets-middleware.js.map +1 -1
- package/dist/assets/index.js +2 -2
- package/dist/assets/index.js.map +1 -1
- package/dist/client/client-auth.js +2 -3
- package/dist/client/client-auth.js.map +1 -1
- package/dist/client/client-manager.d.ts +1 -1
- package/dist/client/client-manager.d.ts.map +1 -1
- package/dist/client/client-manager.js +3 -4
- package/dist/client/client-manager.js.map +1 -1
- package/dist/client/client-store.js +3 -4
- package/dist/client/client-store.js.map +1 -1
- package/dist/client/client-utils.d.ts +0 -1
- package/dist/client/client-utils.d.ts.map +1 -1
- package/dist/client/client-utils.js +2 -3
- package/dist/client/client-utils.js.map +1 -1
- package/dist/device/device-details.d.ts +0 -1
- package/dist/device/device-details.d.ts.map +1 -1
- package/dist/device/device-details.js +3 -3
- package/dist/device/device-details.js.map +1 -1
- package/dist/device/device-id.d.ts.map +1 -1
- package/dist/device/device-manager.d.ts +1 -2
- package/dist/device/device-manager.d.ts.map +1 -1
- package/dist/device/device-store.js +2 -3
- package/dist/device/device-store.js.map +1 -1
- package/dist/device/session-id.d.ts.map +1 -1
- package/dist/dpop/dpop-manager.d.ts +0 -1
- package/dist/dpop/dpop-manager.d.ts.map +1 -1
- package/dist/lib/html/build-document.d.ts +0 -1
- package/dist/lib/html/build-document.d.ts.map +1 -1
- package/dist/lib/html/escapers.js +4 -5
- package/dist/lib/html/escapers.js.map +1 -1
- package/dist/lib/html/util.js +2 -3
- package/dist/lib/html/util.js.map +1 -1
- package/dist/lib/http/accept.d.ts +0 -1
- package/dist/lib/http/accept.d.ts.map +1 -1
- package/dist/lib/http/accept.js +1 -2
- package/dist/lib/http/accept.js.map +1 -1
- package/dist/lib/http/context.js +1 -2
- package/dist/lib/http/context.js.map +1 -1
- package/dist/lib/http/method.d.ts +0 -1
- package/dist/lib/http/method.d.ts.map +1 -1
- package/dist/lib/http/method.js +1 -2
- package/dist/lib/http/method.js.map +1 -1
- package/dist/lib/http/middleware.d.ts +0 -1
- package/dist/lib/http/middleware.d.ts.map +1 -1
- package/dist/lib/http/middleware.js +4 -5
- package/dist/lib/http/middleware.js.map +1 -1
- package/dist/lib/http/parser.d.ts +2 -5
- package/dist/lib/http/parser.d.ts.map +1 -1
- package/dist/lib/http/parser.js +2 -2
- package/dist/lib/http/parser.js.map +1 -1
- package/dist/lib/http/path.js +1 -2
- package/dist/lib/http/path.js.map +1 -1
- package/dist/lib/http/request.d.ts +0 -1
- package/dist/lib/http/request.d.ts.map +1 -1
- package/dist/lib/http/request.js +9 -10
- package/dist/lib/http/request.js.map +1 -1
- package/dist/lib/http/response.d.ts +0 -3
- package/dist/lib/http/response.d.ts.map +1 -1
- package/dist/lib/http/response.js +7 -8
- package/dist/lib/http/response.js.map +1 -1
- package/dist/lib/http/route.d.ts +0 -1
- package/dist/lib/http/route.d.ts.map +1 -1
- package/dist/lib/http/route.js +1 -2
- package/dist/lib/http/route.js.map +1 -1
- package/dist/lib/http/router.d.ts +2 -4
- package/dist/lib/http/router.d.ts.map +1 -1
- package/dist/lib/http/stream.d.ts +2 -7
- package/dist/lib/http/stream.d.ts.map +1 -1
- package/dist/lib/http/stream.js +5 -5
- package/dist/lib/http/stream.js.map +1 -1
- package/dist/lib/http/types.d.ts +0 -1
- package/dist/lib/http/types.d.ts.map +1 -1
- package/dist/lib/http/url.d.ts +0 -1
- package/dist/lib/http/url.d.ts.map +1 -1
- package/dist/lib/http/url.js +1 -2
- package/dist/lib/http/url.js.map +1 -1
- package/dist/lib/redis.d.ts.map +1 -1
- package/dist/lib/redis.js +7 -6
- package/dist/lib/redis.js.map +1 -1
- package/dist/lib/util/cast.js +1 -2
- package/dist/lib/util/cast.js.map +1 -1
- package/dist/lib/util/crypto.js +2 -2
- package/dist/lib/util/crypto.js.map +1 -1
- package/dist/lib/util/date.js +2 -3
- package/dist/lib/util/date.js.map +1 -1
- package/dist/lib/util/hostname.d.ts +0 -1
- package/dist/lib/util/hostname.d.ts.map +1 -1
- package/dist/lib/util/hostname.js +4 -5
- package/dist/lib/util/hostname.js.map +1 -1
- package/dist/lib/util/redirect-uri.js +1 -2
- package/dist/lib/util/redirect-uri.js.map +1 -1
- package/dist/lib/util/time.js +1 -2
- package/dist/lib/util/time.js.map +1 -1
- package/dist/lib/util/well-known.d.ts +0 -1
- package/dist/lib/util/well-known.d.ts.map +1 -1
- package/dist/lib/util/well-known.js +1 -2
- package/dist/lib/util/well-known.js.map +1 -1
- package/dist/metadata/build-metadata.d.ts.map +1 -1
- package/dist/metadata/build-metadata.js +4 -4
- package/dist/metadata/build-metadata.js.map +1 -1
- package/dist/oauth-provider.d.ts +1 -2
- package/dist/oauth-provider.d.ts.map +1 -1
- package/dist/oauth-verifier.d.ts +1 -2
- package/dist/oauth-verifier.d.ts.map +1 -1
- package/dist/output/build-authorize-data.js +1 -2
- package/dist/output/build-authorize-data.js.map +1 -1
- package/dist/output/build-error-payload.js +2 -3
- package/dist/output/build-error-payload.js.map +1 -1
- package/dist/output/customization.d.ts +1 -1
- package/dist/output/customization.d.ts.map +1 -1
- package/dist/output/customization.js +3 -4
- package/dist/output/customization.js.map +1 -1
- package/dist/output/output-manager.d.ts +0 -1
- package/dist/output/output-manager.d.ts.map +1 -1
- package/dist/output/send-authorize-redirect.d.ts +0 -1
- package/dist/output/send-authorize-redirect.d.ts.map +1 -1
- package/dist/output/send-authorize-redirect.js +1 -2
- package/dist/output/send-authorize-redirect.js.map +1 -1
- package/dist/output/send-web-page.d.ts +0 -1
- package/dist/output/send-web-page.d.ts.map +1 -1
- package/dist/output/send-web-page.js +2 -3
- package/dist/output/send-web-page.js.map +1 -1
- package/dist/replay/replay-store-redis.d.ts +1 -1
- package/dist/replay/replay-store-redis.d.ts.map +1 -1
- package/dist/replay/replay-store.js +3 -4
- package/dist/replay/replay-store.js.map +1 -1
- package/dist/request/code.d.ts +1 -1
- package/dist/request/code.d.ts.map +1 -1
- package/dist/request/request-data.d.ts.map +1 -1
- package/dist/request/request-id.d.ts.map +1 -1
- package/dist/request/request-manager.d.ts.map +1 -1
- package/dist/request/request-manager.js +2 -1
- package/dist/request/request-manager.js.map +1 -1
- package/dist/request/request-store-redis.d.ts +1 -1
- package/dist/request/request-store-redis.d.ts.map +1 -1
- package/dist/request/request-store-redis.js.map +1 -1
- package/dist/request/request-store.js +2 -3
- package/dist/request/request-store.js.map +1 -1
- package/dist/request/request-uri.js +3 -3
- package/dist/request/request-uri.js.map +1 -1
- package/dist/signer/signed-token-payload.d.ts +90 -90
- package/dist/signer/signed-token-payload.d.ts.map +1 -1
- package/dist/signer/signer.d.ts +6 -6
- package/dist/signer/signer.d.ts.map +1 -1
- package/dist/token/refresh-token.d.ts +1 -1
- package/dist/token/refresh-token.d.ts.map +1 -1
- package/dist/token/token-claims.d.ts +90 -90
- package/dist/token/token-claims.d.ts.map +1 -1
- package/dist/token/token-id.d.ts +1 -1
- package/dist/token/token-id.d.ts.map +1 -1
- package/dist/token/token-store.js +2 -3
- package/dist/token/token-store.js.map +1 -1
- package/dist/token/verify-token-claims.js +1 -2
- package/dist/token/verify-token-claims.js.map +1 -1
- package/package.json +4 -8
- package/src/client/client-manager.ts +3 -3
- package/src/lib/http/stream.ts +4 -2
- package/src/lib/redis.ts +5 -3
- package/src/metadata/build-metadata.ts +6 -3
- package/src/oauth-provider.ts +1 -1
- package/src/oauth-verifier.ts +1 -1
- package/src/replay/replay-store-redis.ts +1 -1
- package/src/request/request-manager.ts +4 -1
- package/src/request/request-store-redis.ts +2 -1
- package/tsconfig.backend.tsbuildinfo +1 -0
- package/tsconfig.frontend.tsbuildinfo +1 -0
- 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.
|
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":";;;;;;
|
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": "
|
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": "
|
15
|
+
"sha256": "CaolEfLbfWGacOIi2vliD1KViylOPZzPhRTGrD9Igxw="
|
16
16
|
},
|
17
17
|
"main.css": {
|
18
18
|
"type": "asset",
|