Back
Google sign-in failed: AppwriteException: Not yet supported at Account.createOAuth2Session (
- 0
- Android
- React Native
- Web
- Auth
c0rleyyy
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
- Query attributes by uniques only
is there a way to query attributes by uniques only?? ``` [Query.select(["GroupName"])],``` I can use a hash to separate values but i dont think it would be a...
- Cannot change password
I am trying to add a functionality to my app enabling users to change their account passwords but it’s not working. I followed this documentation: https://app...
- Previous ession
Hi, implementing authentication via email and password I found myself in a dilemma: once logged in and then created a session, if I immediately delete the app a...