@reslear/capacitor-google-auth
v3.1.2
Published
Google Auth plugin for capacitor.
Downloads
98
Maintainers
Readme
CapacitorGoogleAuth
Capacitor plugin for Google Auth.
⚠️ This is fork original plugin @codetrix-studio/capacitor-google-auth with new beta features, changes or experiments
Install
npm i -D @reslear/capacitor-google-auth
npx cap sync
WEB
Register plugin and manually initialize
import { GoogleAuth } from '@reslear/capacitor-google-auth';
GoogleAuth.initialize({
client_id: 'xxxxxx-xxxxxxxxxxxxxxxxxx.apps.googleusercontent.com',
scopes: ['profile', 'email'],
grantOfflineAccess: true,
});
see
initialize
method options - descriptions, examples, default values and types indefinition.ts
Use it
GoogleAuth.signIn();
Config, IOS, ANDROID and etc..
see originally instruction CodetrixStudio/CapacitorGoogleAuth