I am trying to create an account with google sign in , the account is getting created but i am not able to log it to console and the dispatch method is also not working
const signupWithGoogle = async () => { try { const userData = await authService.OAuth2Login(); if (userData) { const userData = await authService.getCurrentUser(); console.log(userData); if (userData) dispatch(login(userData)); navigate("/"); } } catch (error) { setError(error.message); } };
async OAuth2Login(provider) {
try {
const user = await this.account.createOAuth2Session(OAuthProvider.Google, "http://localhost:5173");
return user;
} catch (error) {
throw error;
}
}
Recommended threads
- Flutter OAuth2 does not attach Google se...
Hi Appwrite team, I’m using Appwrite Auth in a Flutter mobile app and trying to upgrade an anonymous user to Google OAuth. Docs say that if there is already a...
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...