scope
16 lines 769 B view raw
1[main-app] [User] Failed to resolve identity {"error":"Missing required scope \"rpc:com.atproto.identity.resolveIdentity?aud=did:web:api.bsky.app\"","stack":"Error: Missing required scope \"rpc:com.atproto.identity.resolveIdentity?aud=did:web:api.bsky.app\"\n at call (/Users/regent/Developer/wisp.place-monorepo/node_modules/.bun/@atproto+xrpc@0.7.5/node_modules/@atproto/xrpc/dist/xrpc-client.js:76:35)\n at processTicksAndRejections (native:7:39)"} 2 3const agent = new Agent(auth.session) 4 5let handle = 'unknown' 6try { 7 const identity = await agent.com.atproto.identity.resolveIdentity({ identifier: auth.did }) 8 handle = identity.data.handle 9} catch (err) { 10 logger.error('[User] Failed to resolve identity', err) 11} 12 13return { 14 did: auth.did, 15 handle 16}