c0rleyyyOriginal post
Apple Developer
const handleGoogleSignIn = async () => {
try {
await googleSignIn();
// Handle post-sign-in actions here, like navigation or state updates
} catch (error) {
// Handle errors here
}
};
// 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
Summary
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.