This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix oauth

+5 -7
+5 -7
src/components/Verifier/Verifier.js
··· 140 140 useEffect(() => { 141 141 // If session exists, create an Agent instance 142 142 if (session) { 143 - // The session object from the main AuthContext might be structured differently. 144 - // Assuming it has an `accessJwt` and `did` (or `sub`) 145 - const agentInstance = new Agent({ 146 - service: 'https://bsky.social', // Or get from session if available 147 - session: session // Pass the session object directly 148 - }); 143 + // The session object from AuthContext IS the session manager 144 + // Pass it directly to the Agent constructor. 145 + const agentInstance = new Agent(session); 149 146 setAgent(agentInstance); 150 147 151 148 // Fetch logged-in user's profile info using the authenticated API 152 - agentInstance.api.app.bsky.actor.getProfile({ actor: session.did /* Ensure correct DID property */ }) 149 + // Use the agent's built-in DID reference after initialization 150 + agentInstance.getProfile({ actor: agentInstance.session.did }) 153 151 .then(res => { 154 152 console.log('Logged-in user profile fetched successfully:', res.data); 155 153 setUserInfo(res.data);