CodetrixStudio / CapacitorGoogleAuth

Capacitor plugin for Google Auth. Lightweight & no dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: Property 'GoogleAuth' is missing in type

mburger81 opened this issue · comments

As we have a opensource project which use your fantastica GoogleAuth capacitor plugin, we need to setup the plugin dynamically on startup.

If we remove the configuration from the capacitor.config.ts file we run into this error:
Property 'GoogleAuth' is missing in type .... but required in type 'PluginsConfig'

This means we have to setup a GoogleAuth object in the configuration file.

So we try to setup it empty like this:

plugins: {
    GoogleAuth: {},

This will avoid the compilation issue. After this we try to configure dynamically the plugin using GoogleAuth.initialize but in our tests it results that later on the ios/android capacitor app, we run into the issue that the plugin is not configured.

So this is maybe a bug or a feature request

The GoogleAuth has to be optional for the configuration file and the plugin should be able to initialize from the capacitor app itself

Thx