Giter VIP home page Giter VIP logo

Comments (4)

OnlinePage avatar OnlinePage commented on June 10, 2024

@Monomachus please look to above issue

from capacitorgoogleauth.

OnlinePage avatar OnlinePage commented on June 10, 2024

Alright the issue was the options were not properly set in the capacitor.config.js
But still now everytime login response is error code 10 Please respond it , it totall urgent!!

from capacitorgoogleauth.

Martin-Eckleben avatar Martin-Eckleben commented on June 10, 2024

Alright the issue was the options were not properly set in the capacitor.config.js But still now everytime login response is error code 10 Please respond it , it totall urgent!!

How did you set them properly?
I'm there now as well.

Mine:

import { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: <id>,
  appName: <name>,
  webDir: 'www',
  bundledWebRuntime: false,

  plugins: {
    GoogleAuth: {
      clientId: '<clientID>.apps.googleusercontent.com'
    },
  },
}

export default config

from capacitorgoogleauth.

Martin-Eckleben avatar Martin-Eckleben commented on June 10, 2024

I solved it with

  plugins: {

    GoogleAuth: {
      scopes: ["profile", "email"],
      clientId: '<clientID>.apps.googleusercontent.com',
    },
  },

Then I did not even have to state it in the initialize call anymore (as it was described in the Readme.md):
GoogleAuth.initialize();

from capacitorgoogleauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.