@reslear/capacitor-google-auth
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

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 in definition.ts

Use it

GoogleAuth.signIn();

Config, IOS, ANDROID and etc..

see originally instruction CodetrixStudio/CapacitorGoogleAuth

Package Sidebar

Install

npm i @reslear/capacitor-google-auth

Weekly Downloads

949

Version

3.1.2

License

MIT

Unpacked Size

127 kB

Total Files

41

Last publish

Collaborators

  • reslear