Flutter Developer
I have hosted appwrite project locally, enabled google auth and did all the oauth consent process as per the documentation. Now I want to run the Flutter project on a real mobile device. To forward the port, I used ngrok and got an IP. I have confirmed that it's working fine.
Made OAuth Client API for Web application on a project in GCP Console, got the Client ID, Client Secret and passed it for enabling Google auth for Appwrite project.
I have copied the redirect url from appwrite google auth console (which includes localhost/v1/....), and replaced the localhost part with ngrok url and put it as Google OAuth Client API redirect url.
Now, when I'm running the app with Flutter, it shows this 400: redirect_uri_mistmatch.
Can someone suggest any solution?
(P.S. The GCP project is in testing mode)