Back

Google sign-in failed: AppwriteException: Not yet supported at Account.createOAuth2Session (

  • 0
  • Android
  • React Native
  • Web
  • Auth
c0rleyyy
9 Sep, 2024, 09:53
TypeScript
  const handleGoogleSignIn = async () => {
    try {
      await googleSignIn();
      // Handle post-sign-in actions here, like navigation or state updates
    } catch (error) {
      // Handle errors here
    }
  };
TypeScript
// Google sign-in function
export const googleSignIn = async () => {
  try {
    // Start the OAuth2 flow
    await account.createOAuth2Session(
      'google', // Provider ID for Google
      'http://localhost:8081/home', // Redirect URL after successful login
      'http://localhost:8081/sign-in' // Redirect URL on failure
    );
    console.log('Google sign-in successful');
  } catch (error) {
    console.error('Google sign-in failed:', error);
    throw new Error(error);
  }
};

i need help

TL;DR
Google sign-in functionality is failing with an "AppwriteException: Not yet supported" error. The issue might be related to Google OAuth2 not being fully supported by Appwrite. Consider using a different authentication method or checking for updates on Appwrite's documentation.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more