CapacitorGoogleAuth
CapacitorGoogleAuth copied to clipboard
Auto generation of the meta element
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.
you are welcome to do a PR @emtiajium :)