
Error:
TypeScript
at o.<anonymous> (https://cdn.jsdelivr.net/npm/appwrite@16.0.0:7:7420)
at Generator.next (<anonymous>)
at s (https://cdn.jsdelivr.net/npm/appwrite@16.0.0:7:111)
Code:
TypeScript
const client = new Appwrite.Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('ipfetcher-bot'); // Your project ID
const account = new Appwrite.Account(client);
// Go to OAuth provider login page
account.createOAuth2Session(
Appwrite.OAuthProvider.Google, // provider
'https://ip-fetcher-bot.ryanbaig.vercel.app/api/success', // redirect here on success
'https://ip-fetcher-bot.ryanbaig.vercel.app/api/failure' // redirect here on failure
);
TL;DR
Google OAuth2 authentication is failing with an 'Invalid redirect' error in the provided code. The issue could be due to incorrect redirect URLs. Make sure the redirect URLs are correctly configured in the OAuth provider settings and in the code snippet. Check the URLs 'https://ip-fetcher-bot.ryanbaig.vercel.app/api/success' and 'https://ip-fetcher-bot.ryanbaig.vercel.app/api/failure' for accuracy.Recommended threads
- mcp-for-docs not working properly
I'm experiencing issues integrating the MCP server tool with Cursor IDE. The MCP server connection establishes successfully initially but fails after one minute...
- When connecting to VCS (Version Control ...
Hello, when I try to define in my function the root path of a function I get this when I click "Update".
- How do you strategically secure day's wo...
I worked entire day to try and solve how to use clerk such that it handles checking user's authentication purely server-side. I wasted entire day on a loop of a...
