+2
-2
packages/oauth/browser-client/README.md
+2
-2
packages/oauth/browser-client/README.md
···
88
88
on your redirect URL, extract the parameters and finalize:
89
89
90
90
```ts
91
-
import { XRPC } from '@atcute/client';
91
+
import { Client } from '@atcute/client';
92
92
import { OAuthUserAgent, finalizeAuthorization } from '@atcute/oauth-browser-client';
93
93
94
94
// server redirects with params in hash, not search string
···
99
99
100
100
const { session } = await finalizeAuthorization(params);
101
101
const agent = new OAuthUserAgent(session);
102
-
const rpc = new XRPC({ handler: agent });
102
+
const rpc = new Client({ handler: agent });
103
103
104
104
const { data } = await rpc.get('com.atproto.identity.resolveHandle', {
105
105
params: { handle: 'mary.my.id' },