CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Auto generation of the meta element

Open emtiajium opened this issue 4 years ago • 1 comments

static createMetadata(): void {
        const googlePlatformMetadata = document.createElement('meta');
        googlePlatformMetadata.setAttribute('name', 'google-signin-client_id');
        googlePlatformMetadata.setAttribute('content', Config.plugins.GoogleAuth.serverClientId);
        document.head.appendChild(googlePlatformMetadata);
}

It would be nice if the <meta /> element is generated programmatically so that we don't need to expose the client ID at the HTML file. I believe the above line of codes is enough. All we need to do is to import the ID from the capacitor.config.json file.

emtiajium avatar Jun 23 '21 16:06 emtiajium

you are welcome to do a PR @emtiajium :)

fullstackduck avatar Jun 27 '21 06:06 fullstackduck