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
- Cold start and deployment failed
It was working fine before, and I didn’t make any changes. It started showing a cold start error, so I tried redeploying, but the error is still there. Dart: s...
- Migration Pending version 1.9.0 self Hos...
I am trying to use the migration feature, my migration has been sitting in a "pending" state for 5 hours now? this is all that is in the "logs" { "$id": "69c...
- Redis exception after failed upgrade
After attempting an Update from 1.8.1 to 1.9.0 where i accidentally typed 1.8.0 I've encountered multiple issues with my appwrite instance all of which resultin...