diff --git a/src/contexts/AuthContext.js b/src/contexts/AuthContext.js index 1e9444e..4b34e3e 100644 --- a/src/contexts/AuthContext.js +++ b/src/contexts/AuthContext.js @@ -42,11 +42,10 @@ export const AuthProvider = ({ children }) => { console.log('(AuthProvider) Initializing BrowserOAuthClient...'); try { - // Create the client instance using the .load() factory method - console.log(`(AuthProvider) Loading client metadata from: ${metadataUrl}`); - const oauthClient = await BrowserOAuthClient.load({ - clientId: metadataUrl, - handleResolver: 'https://bsky.social', + // Create the client instance + const oauthClient = new BrowserOAuthClient({ + clientMetadata: clientMetadata, + handleResolver: 'https://public.api.bsky.app', plcDirectoryUrl: 'https://plc.directory', });