Back
Google sign-in failed: AppwriteException: Not yet supported at Account.createOAuth2Session (
- 0
- Android
- React Native
- Web
- Auth
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.Recommended threads
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...