
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
- deleteDocument shows The current user is...
my application is an ecomm app that list the products and i just want to add the delete functionality to delete the product the user has permission in appwrite...
- running the run() function with the maxT...
export default async function run( executor: IExecutor, queue: AsyncIterable<ITask>, maxThreads = 0 ) { maxThreads = Math.max(0, maxThreads); const A...
- Not sending to majority of Topic Targets...
I have a site using Appwrite Cloud with many people joined with email, Google/Facebook/or Apple Auth. I’ve added them (156 people) to a Messaging Topic and have...
