@atproto/oauth-client-browser 0.1.1 → 0.1.2-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -254,13 +254,15 @@ client.addEventListener(
254
254
  ## Usage with `@atproto/api`
255
255
 
256
256
  The `@atproto/api` package provides a way to interact with the `com.atproto` and
257
- `app.bsky` XRPC lexicons through the `ApiAgent` interface. The `agent` returned
258
- by the `BrowserOAuthClient` extend the `ApiAgent` class, allowing to use the
259
- `BrowserOAuthClient` as a regular `ApiAgent` (akin to `AtpAgent` class
257
+ `app.bsky` XRPC lexicons through the `Agent` interface. The `agent` returned
258
+ by the `BrowserOAuthClient` extend the `Agent` class, allowing to use the
259
+ `BrowserOAuthClient` as a regular `Agent` (akin to `AtpAgent` class
260
260
  instances).
261
261
 
262
262
  ```typescript
263
263
  const aliceAgent = await client.restore('did:plc:alice')
264
+
265
+ await aliceAgent.getProfile({ actor: aliceAgent.did })
264
266
  ```
265
267
 
266
268
  Any refresh of the credentials will happen under the hood, and the new tokens
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { HandleResolver } from '@atproto-labs/handle-resolver';
3
- import { AuthorizeOptions, Fetch, OAuthAgent, OAuthClient } from '@atproto/oauth-client';
3
+ import { AuthorizeOptions, Fetch, OAuthAtpAgent, OAuthClient } from '@atproto/oauth-client';
4
4
  import { OAuthClientIdDiscoverable, OAuthClientIdLoopback, OAuthClientMetadataInput } from '@atproto/oauth-types';
5
5
  export type BrowserOAuthClientOptions = {
6
6
  clientMetadata?: OAuthClientMetadataInput;
@@ -18,22 +18,22 @@ export declare class BrowserOAuthClient extends OAuthClient implements Disposabl
18
18
  readonly [Symbol.dispose]: () => void;
19
19
  constructor({ handleResolver, clientMetadata, responseMode, plcDirectoryUrl, fetch, }: BrowserOAuthClientOptions);
20
20
  init(refresh?: boolean): Promise<{
21
- agent: OAuthAgent;
21
+ agent: OAuthAtpAgent;
22
22
  state: string | null;
23
23
  } | {
24
- agent: OAuthAgent;
24
+ agent: OAuthAtpAgent;
25
25
  } | undefined>;
26
- restore(sub: string, refresh?: boolean): Promise<OAuthAgent>;
26
+ restore(sub: string, refresh?: boolean): Promise<OAuthAtpAgent>;
27
27
  revoke(sub: string): Promise<void>;
28
28
  signIn(input: string, options: AuthorizeOptions & {
29
29
  display: 'popup';
30
- }): Promise<OAuthAgent>;
30
+ }): Promise<OAuthAtpAgent>;
31
31
  signIn(input: string, options?: AuthorizeOptions): Promise<never>;
32
32
  signInRedirect(input: string, options?: AuthorizeOptions): Promise<never>;
33
- signInPopup(input: string, options?: Omit<AuthorizeOptions, 'state'>): Promise<OAuthAgent>;
33
+ signInPopup(input: string, options?: Omit<AuthorizeOptions, 'state'>): Promise<OAuthAtpAgent>;
34
34
  private readCallbackParams;
35
35
  signInCallback(): Promise<{
36
- agent: OAuthAgent;
36
+ agent: OAuthAtpAgent;
37
37
  state: string | null;
38
38
  } | null>;
39
39
  dispose(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"browser-oauth-client.d.ts","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EACL,gBAAgB,EAEhB,KAAK,EACL,UAAU,EAEV,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAIL,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAO7B,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,wBAAwB,CAAA;IACzC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,CAAA;IAC7C,YAAY,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAE9B,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AA8BD,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,yBAAyB,EACzB,gBAAgB,C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BAAgB,GAAG,OAAO,CAAC,KAAK,CAAC;IAS3D,cAAc,CAClB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,KAAK,CAAC;IAqBX,WAAW,CACf,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GACxC,OAAO,CAAC,aAAa,CAAC;IA+EzB,OAAO,CAAC,kBAAkB;IAuBpB,cAAc;;;;IAqFpB,OAAO;CAGR"}
@@ -96,7 +96,7 @@ class BrowserOAuthClient extends oauth_client_1.OAuthClient {
96
96
  await fixLocation(this.clientMetadata);
97
97
  const signInResult = await this.signInCallback();
98
98
  if (signInResult) {
99
- localStorage.setItem(`${NAMESPACE}(sub)`, signInResult.agent.sub);
99
+ localStorage.setItem(`${NAMESPACE}(sub)`, signInResult.agent.did);
100
100
  return signInResult;
101
101
  }
102
102
  const sub = localStorage.getItem(`${NAMESPACE}(sub)`);
@@ -113,7 +113,7 @@ class BrowserOAuthClient extends oauth_client_1.OAuthClient {
113
113
  }
114
114
  async restore(sub, refresh) {
115
115
  const agent = await super.restore(sub, refresh);
116
- localStorage.setItem(`${NAMESPACE}(sub)`, agent.sub);
116
+ localStorage.setItem(`${NAMESPACE}(sub)`, agent.did);
117
117
  return agent;
118
118
  }
119
119
  async revoke(sub) {
@@ -252,7 +252,7 @@ class BrowserOAuthClient extends oauth_client_1.OAuthClient {
252
252
  key: result.state.slice(POPUP_STATE_PREFIX.length),
253
253
  result: {
254
254
  status: 'fulfilled',
255
- value: result.agent.sub,
255
+ value: result.agent.did,
256
256
  },
257
257
  });
258
258
  // Revoke the credentials if the parent window was closed
@@ -1 +1 @@
1
- {"version":3,"file":"browser-oauth-client.js","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[],"mappings":";;;;AACA,wDAQ8B;AAC9B,sDAO6B;AAE7B,2EAAkE;AAClE,2FAAkF;AAClF,2CAA+D;AAC/D,uC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AAC,OAAO;AA4V1B;;;;;;;;GAQG;AACH,SAAS,WAAW,CAAC,cAA8B;IACjD,IAAI,CAAC,IAAA,qCAAuB,EAAC,cAAc,CAAC,SAAS,CAAC;QAAE,OAAM;IAC9D,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK,WAAW;QAAE,OAAM;IAEpD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAEjD,KAAK,MAAM,GAAG,IAAI,cAAc,CAAC,aAAa,EAAE,CAAC;QAC/C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAA;QACxB,IACE,CAAC,GAAG,CAAC,QAAQ,KAAK,WAAW,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,CAAC;YAC1D,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC,IAAI,CAAC;YAC5C,GAAG,CAAC,QAAQ,KAAK,WAAW,CAAC,QAAQ;YACrC,GAAG,CAAC,QAAQ,KAAK,WAAW,CAAC,QAAQ,EACrC,CAAC;YACD,GAAG,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAA;YAC3B,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAA;YAE/B,qCAAqC;YACrC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;QAClD,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CACb,iDAAiD,WAAW,EAAE,CAC/D,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/oauth-client-browser",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ATPROTO OAuth client for the browser (relies on WebCrypto & Indexed DB)",
6
6
  "keywords": [
@@ -32,13 +32,13 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@atproto-labs/did-resolver": "0.1.1",
35
- "@atproto-labs/handle-resolver": "0.1.1",
36
35
  "@atproto-labs/simple-store": "0.1.1",
37
36
  "@atproto/did": "0.1.0",
38
37
  "@atproto/jwk": "0.1.1",
39
- "@atproto/jwk-webcrypto": "0.1.1",
40
- "@atproto/oauth-client": "0.1.1",
41
- "@atproto/oauth-types": "0.1.1"
38
+ "@atproto/jwk-webcrypto": "0.1.2-rc.0",
39
+ "@atproto/oauth-types": "0.1.1",
40
+ "@atproto/oauth-client": "0.1.2-rc.1",
41
+ "@atproto-labs/handle-resolver": "0.1.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -59,11 +59,11 @@
59
59
  "rollup-plugin-serve": "^1.1.1",
60
60
  "tailwindcss": "^3.4.1",
61
61
  "typescript": "^5.3.3",
62
- "@atproto/api": "0.12.24",
63
- "@atproto/oauth-client": "0.1.1",
64
- "@atproto/oauth-client-browser": "0.1.1",
62
+ "@atproto/oauth-client": "0.1.2-rc.1",
63
+ "@atproto/oauth-client-browser": "0.1.2-rc.1",
64
+ "@atproto/api": "0.13.0-rc.0",
65
65
  "@atproto/oauth-types": "0.1.1",
66
- "@atproto/xrpc": "0.5.0"
66
+ "@atproto/xrpc": "0.6.0-rc.0"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "tsc --build tsconfig.build.json",