Skip to content
Back

ionic

  • 0
  • Android
  • Auth
  • Cloud
Alsemo
24 Nov, 2024, 13:05

Hi everyone,

I'm using Ionic Vue with Capacitor, building an Android app and I'm having a problem with OAuth2 (Google) login.

I have set up the Deep-Link correctly (I strongly think so) with Appwrite's Custom Domain such as below:

My App's Deep-Link hostname = https://app.azzotech.com.my Appwrite's Custom Domain = https://appwrite.app.azzotech.com.my

On the Google login's flow itself, it can open the google account selection page, then I can select the Google account I want to use for login, then my app will open triggered by the deep-link. But when I try to get the user account, I will receive 401 error. Closin the app and reopening it will result in the same.

To add something weird, just now I noticed that if I uninstall the app, then install it again, I will be logged in with the previous Google account when I open the app after installation. Thanks in advance.

TL;DR
Developers using Ionic Vue and Capacitor are experiencing OAuth2 (Google) login issues in their Android app. Despite correctly setting up the Deep-Link with Appwrite's Custom Domain, they are receiving a 401 error when trying to get user account information after selecting a Google account. An odd behavior noted is being automatically logged in with the previous Google account after reinstalling the app.
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