@reslear/capacitor-google-auth

Google Auth plugin for capacitor.
4,598 8
Install
npm install @reslear/capacitor-google-auth
Latest Version:3.1.2
License:MIT
Last Updated:May 30, 2023
Links: GitHub  ·  npm
Maintainer: reslear

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

Related Packages

Version History

Version Released License
3.1.2 MIT
3.1.1 MIT
3.1.0 MIT
1.1.9 MIT
1.1.8 MIT
Pre-releases (6)
Version Released License
1.0.0-rc.5 MIT
1.0.0-rc.4 MIT
1.0.0-rc.3 MIT
1.0.0-rc.2 MIT
1.0.0-rc.1 MIT