@atproto/oauth-client 0.3.13 → 0.3.14

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atproto/oauth-client
2
2
 
3
+ ## 0.3.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`371e04aad`](https://github.com/bluesky-social/atproto/commit/371e04aad2a3e8ae3fe185ce15fc8eb051cab78e), [`26a077716`](https://github.com/bluesky-social/atproto/commit/26a07771673bf1090a61efb7c970235f0b2509fc)]:
8
+ - @atproto/oauth-types@0.2.5
9
+ - @atproto/jwk@0.1.5
10
+
3
11
  ## 0.3.13
4
12
 
5
13
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"atproto-token-response.d.ts","sourceRoot":"","sources":["../src/atproto-token-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAG/B,OAAO,EAAE,mBAAmB,EAA+B,MAAM,QAAQ,CAAA;AAEzE,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAA;AACzD,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,KAAK,IAAI,YACT,CAAA;AAC/C,eAAO,MAAM,kBAAkB,iDAE6B,CAAA;AAE5D,eAAO,MAAM,0BAA0B;kBATiC,EAExE,SAAS;gBAAkB,EAAE,QAAQ,EAAE,EAAE,UAAU,CAAC,EAAE,SACjD,mBAAkB,EAAG,UAAU,CAAE,EAAC,SAAS;WACvC,EAAG,WAAW,CAAC,EAAE,SAAS;mBAC3B,EAAG,WAAW,CAAC,EAAE,SAAS;gBAE9B,EAAG,WAAW,CAAC,EAAE,SAAS;cAAiB,EAAG,WAAU,CAE5D,EAAC,UAAU,CAAE,EAAC,UAAU,CAAC,EAAE,SAAS;2BAErB,EAAG,WACd,CAAC,EAAE,QAAQ,CAAC,EAAE,SA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202
  readonly n: string;
203
203
  readonly e: string;
204
- readonly alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
205
- readonly kid?: string | undefined;
206
- readonly ext?: boolean | undefined;
207
- readonly use?: "sig" | "enc" | undefined;
204
+ readonly alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined | undefined;
205
+ readonly kid?: string | undefined | undefined;
206
+ readonly ext?: boolean | undefined | undefined;
207
+ readonly use?: "sig" | "enc" | undefined | undefined;
208
208
  readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
209
209
  readonly x5c?: readonly string[] | undefined;
210
- readonly x5t?: string | undefined;
211
- readonly 'x5t#S256'?: string | undefined;
212
- readonly x5u?: string | undefined;
213
- readonly d?: string | undefined;
214
- readonly p?: string | undefined;
215
- readonly q?: string | undefined;
216
- readonly dp?: string | undefined;
217
- readonly dq?: string | undefined;
218
- readonly qi?: string | undefined;
210
+ readonly x5t?: string | undefined | undefined;
211
+ readonly 'x5t#S256'?: string | undefined | undefined;
212
+ readonly x5u?: string | undefined | undefined;
213
+ readonly d?: string | undefined | undefined;
214
+ readonly p?: string | undefined | undefined;
215
+ readonly q?: string | undefined | undefined;
216
+ readonly dp?: string | undefined | undefined;
217
+ readonly dq?: string | undefined | undefined;
218
+ readonly qi?: string | undefined | undefined;
219
219
  readonly oth?: readonly [{
220
- readonly d?: string | undefined;
221
- readonly r?: string | undefined;
222
- readonly t?: string | undefined;
220
+ readonly d?: string | undefined | undefined;
221
+ readonly r?: string | undefined | undefined;
222
+ readonly t?: string | undefined | undefined;
223
223
  }, ...{
224
- readonly d?: string | undefined;
225
- readonly r?: string | undefined;
226
- readonly t?: string | undefined;
224
+ readonly d?: string | undefined | undefined;
225
+ readonly r?: string | undefined | undefined;
226
+ readonly t?: string | undefined | undefined;
227
227
  }[]] | undefined;
228
228
  } | {
229
229
  readonly kty: "EC";
230
230
  readonly crv: "P-256" | "P-384" | "P-521";
231
231
  readonly x: string;
232
232
  readonly y: string;
233
- readonly alg?: "ES256" | "ES384" | "ES512" | undefined;
234
- readonly kid?: string | undefined;
235
- readonly ext?: boolean | undefined;
236
- readonly use?: "sig" | "enc" | undefined;
233
+ readonly alg?: "ES256" | "ES384" | "ES512" | undefined | undefined;
234
+ readonly kid?: string | undefined | undefined;
235
+ readonly ext?: boolean | undefined | undefined;
236
+ readonly use?: "sig" | "enc" | undefined | undefined;
237
237
  readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
238
238
  readonly x5c?: readonly string[] | undefined;
239
- readonly x5t?: string | undefined;
240
- readonly 'x5t#S256'?: string | undefined;
241
- readonly x5u?: string | undefined;
242
- readonly d?: string | undefined;
239
+ readonly x5t?: string | undefined | undefined;
240
+ readonly 'x5t#S256'?: string | undefined | undefined;
241
+ readonly x5u?: string | undefined | undefined;
242
+ readonly d?: string | undefined | undefined;
243
243
  } | {
244
244
  readonly kty: "EC";
245
245
  readonly crv: "secp256k1";
246
246
  readonly x: string;
247
247
  readonly y: string;
248
- readonly alg?: "ES256K" | undefined;
249
- readonly kid?: string | undefined;
250
- readonly ext?: boolean | undefined;
251
- readonly use?: "sig" | "enc" | undefined;
248
+ readonly alg?: "ES256K" | undefined | undefined;
249
+ readonly kid?: string | undefined | undefined;
250
+ readonly ext?: boolean | undefined | undefined;
251
+ readonly use?: "sig" | "enc" | undefined | undefined;
252
252
  readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
253
253
  readonly x5c?: readonly string[] | undefined;
254
- readonly x5t?: string | undefined;
255
- readonly 'x5t#S256'?: string | undefined;
256
- readonly x5u?: string | undefined;
257
- readonly d?: string | undefined;
254
+ readonly x5t?: string | undefined | undefined;
255
+ readonly 'x5t#S256'?: string | undefined | undefined;
256
+ readonly x5u?: string | undefined | undefined;
257
+ readonly d?: string | undefined | undefined;
258
258
  } | {
259
259
  readonly kty: "OKP";
260
260
  readonly crv: "Ed25519" | "Ed448";
261
261
  readonly x: string;
262
- readonly alg?: "EdDSA" | undefined;
263
- readonly kid?: string | undefined;
264
- readonly ext?: boolean | undefined;
265
- readonly use?: "sig" | "enc" | undefined;
262
+ readonly alg?: "EdDSA" | undefined | undefined;
263
+ readonly kid?: string | undefined | undefined;
264
+ readonly ext?: boolean | undefined | undefined;
265
+ readonly use?: "sig" | "enc" | undefined | undefined;
266
266
  readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
267
267
  readonly x5c?: readonly string[] | undefined;
268
- readonly x5t?: string | undefined;
269
- readonly 'x5t#S256'?: string | undefined;
270
- readonly x5u?: string | undefined;
271
- readonly d?: string | undefined;
268
+ readonly x5t?: string | undefined | undefined;
269
+ readonly 'x5t#S256'?: string | undefined | undefined;
270
+ readonly x5u?: string | undefined | undefined;
271
+ readonly d?: string | undefined | undefined;
272
272
  } | {
273
273
  readonly kty: "oct";
274
274
  readonly k: string;
275
- readonly alg?: "HS256" | "HS384" | "HS512" | undefined;
276
- readonly kid?: string | undefined;
277
- readonly ext?: boolean | undefined;
278
- readonly use?: "sig" | "enc" | undefined;
275
+ readonly alg?: "HS256" | "HS384" | "HS512" | undefined | undefined;
276
+ readonly kid?: string | undefined | undefined;
277
+ readonly ext?: boolean | undefined | undefined;
278
+ readonly use?: "sig" | "enc" | undefined | undefined;
279
279
  readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
280
280
  readonly x5c?: readonly string[] | undefined;
281
- readonly x5t?: string | undefined;
282
- readonly 'x5t#S256'?: string | undefined;
283
- readonly x5u?: string | undefined;
281
+ readonly x5t?: string | undefined | undefined;
282
+ readonly 'x5t#S256'?: string | undefined | undefined;
283
+ readonly x5u?: string | undefined | undefined;
284
284
  } | {
285
285
  readonly kty: string;
286
- readonly alg?: string | undefined;
287
- readonly kid?: string | undefined;
288
- readonly ext?: boolean | undefined;
289
- readonly use?: "sig" | "enc" | undefined;
286
+ readonly alg?: string | undefined | undefined;
287
+ readonly kid?: string | undefined | undefined;
288
+ readonly ext?: boolean | undefined | undefined;
289
+ readonly use?: "sig" | "enc" | undefined | undefined;
290
290
  readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
291
291
  readonly x5c?: readonly string[] | undefined;
292
- readonly x5t?: string | undefined;
293
- readonly 'x5t#S256'?: string | undefined;
294
- readonly x5u?: string | undefined;
292
+ readonly x5t?: string | undefined | undefined;
293
+ readonly 'x5t#S256'?: string | undefined | undefined;
294
+ readonly x5u?: string | undefined | undefined;
295
295
  })[];
296
296
  };
297
297
  authorize(input: string, { signal, ...options }?: AuthorizeOptions): Promise<URL>;
@@ -125,7 +125,7 @@ class OAuthSession {
125
125
  // credentials from the authorization server (e.g. because some migration
126
126
  // occurred). Any ways, there is no point in keeping the session.
127
127
  if (isInvalidTokenResponse(finalResponse)) {
128
- // TODO: Is there a "softer" way to handle this, e.g. by marking the
128
+ // @TODO Is there a "softer" way to handle this, e.g. by marking the
129
129
  // session as "expired" in the session store, allowing the user to trigger
130
130
  // a new login (using login_hint)?
131
131
  await this.sessionGetter.delStored(this.sub, new token_invalid_error_js_1.TokenInvalidError(this.sub));
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA;AAC7C,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,C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,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EACzD,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,GAC1C,IAAI;IAIP,mBAAmB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,cAAc,EAAE,MAAM,CAAC,EACjE,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EACzD,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,GACvC,IAAI;IAQP,mBAAmB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,cAAc,EAAE,MAAM,CAAC,EACjE,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,IAAI,CAAC,EAAE,SAAS,GACf,OAAO;CAKX;AAED,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,MAAM,IAChD,GAAG,KAAK,EAAE,GACV,GAAG,KAAK,IAAI,MAAM,EAAE,GACpB,GAAG,MAAM,IAAI,KAAK,EAAE,GACpB,GAAG,MAAM,IAAI,KAAK,IAAI,MAAM,EAAE,CAAA;AAElC,eAAO,MAAM,2BAA2B,GAAI,KAAK,SAAS,MAAM,EAC9D,OAAO,MAAM,EACb,OAAO,KAAK,KACX,KAAK,IAAI,mBAAmB,CAAC,KAAK,CA+BpC,CAAA;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,EAAE,GAgCrD,eAAe,GAAG,UAAU,CAClD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/oauth-client",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "license": "MIT",
5
5
  "description": "OAuth client for ATPROTO PDS. This package serves as common base for environment-specific implementations (NodeJS, Browser, React-Native).",
6
6
  "keywords": [
@@ -34,8 +34,8 @@
34
34
  "@atproto-labs/simple-store": "0.1.2",
35
35
  "@atproto-labs/simple-store-memory": "0.1.2",
36
36
  "@atproto/did": "0.1.5",
37
- "@atproto/jwk": "0.1.4",
38
- "@atproto/oauth-types": "0.2.4",
37
+ "@atproto/jwk": "0.1.5",
38
+ "@atproto/oauth-types": "0.2.5",
39
39
  "@atproto/xrpc": "0.6.12"
40
40
  },
41
41
  "devDependencies": {
@@ -143,7 +143,7 @@ export class OAuthSession {
143
143
  // credentials from the authorization server (e.g. because some migration
144
144
  // occurred). Any ways, there is no point in keeping the session.
145
145
  if (isInvalidTokenResponse(finalResponse)) {
146
- // TODO: Is there a "softer" way to handle this, e.g. by marking the
146
+ // @TODO Is there a "softer" way to handle this, e.g. by marking the
147
147
  // session as "expired" in the session store, allowing the user to trigger
148
148
  // a new login (using login_hint)?
149
149
  await this.sessionGetter.delStored(
@@ -1 +1 @@
1
- {"root":["./src/atproto-token-response.ts","./src/constants.ts","./src/fetch-dpop.ts","./src/index.ts","./src/lock.ts","./src/oauth-authorization-server-metadata-resolver.ts","./src/oauth-callback-error.ts","./src/oauth-client.ts","./src/oauth-protected-resource-metadata-resolver.ts","./src/oauth-resolver-error.ts","./src/oauth-resolver.ts","./src/oauth-response-error.ts","./src/oauth-server-agent.ts","./src/oauth-server-factory.ts","./src/oauth-session.ts","./src/runtime-implementation.ts","./src/runtime.ts","./src/session-getter.ts","./src/state-store.ts","./src/types.ts","./src/util.ts","./src/validate-client-metadata.ts","./src/errors/token-invalid-error.ts","./src/errors/token-refresh-error.ts","./src/errors/token-revoked-error.ts"],"version":"5.6.3"}
1
+ {"root":["./src/atproto-token-response.ts","./src/constants.ts","./src/fetch-dpop.ts","./src/index.ts","./src/lock.ts","./src/oauth-authorization-server-metadata-resolver.ts","./src/oauth-callback-error.ts","./src/oauth-client.ts","./src/oauth-protected-resource-metadata-resolver.ts","./src/oauth-resolver-error.ts","./src/oauth-resolver.ts","./src/oauth-response-error.ts","./src/oauth-server-agent.ts","./src/oauth-server-factory.ts","./src/oauth-session.ts","./src/runtime-implementation.ts","./src/runtime.ts","./src/session-getter.ts","./src/state-store.ts","./src/types.ts","./src/util.ts","./src/validate-client-metadata.ts","./src/errors/token-invalid-error.ts","./src/errors/token-refresh-error.ts","./src/errors/token-revoked-error.ts"],"version":"5.8.2"}