Skip to content

DOCS ISSUE: Error code 10 in Capacitor 4 with Google Auth in Android #263

@j-d-carmichael

Description

@j-d-carmichael

We are using Capacitor v4.7.0

We use Firebase for push notifications (https://capacitorjs.com/docs/guides/push-notifications-firebase)

We use Google and Facebook for SSO on the web and have had no issues before and after starting to integrate Google SSO in the app.

In fact, the Facebook (https://github.com/capacitor-community/facebook-login) login is integrated into our Android app just fine.

We're getting dizzy running through all the rabbit warrens of guides....

Issue/Question 1: For Google SSO to work with this plugin, do we need to use Firebase?

A lot of the SO posts and other guides point to using Firebase for SSO - but this makes no sense to us as we have our own server for authentication, and it works fine for Google SSO via our web app. We just passed a token to google from the client and all is good.

Issue/Question 2: Do we have to wait for the new Android OAuth to be approved?

When we added the Android OAuth key, we noticed that the google OAuth consent screen changed; we now have " Verification in progress" again. So, we're hoping it is just this, but Google is not helpful in any way there to know what is what.


We spent a good number of hours trying to get this to work, but we only seem to be able to get in return error #10 without any further info from Google.

We have done the following to try and get this to work:

  1. Added the SHA1 to our firebase Push Notification project.
  2. Added the android OAuth key and the server id to the capacitor.ts file as illustrated here: https://github.com/CodetrixStudio/CapacitorGoogleAuth/#configure
  3. Added all the android code and js code
  4. But... nothing works - we only get error 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions