{"_id":"@boeto/capacitor-google-auth","_rev":"3-20a7458cd06c6f06cd4553130c3a05bb","name":"@boeto/capacitor-google-auth","dist-tags":{"latest":"2.1.6"},"versions":{"2.1.4":{"name":"@boeto/capacitor-google-auth","version":"2.1.4","description":"Google Auth plugin for capacitor.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"CodetrixStudio"},"license":"MIT","dependencies":{"@capacitor/core":"2.4.7"},"devDependencies":{"@capacitor/android":"2.4.7","@capacitor/ios":"2.4.7","@types/gapi":"0.0.36","@types/gapi.auth2":"0.0.50","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","google","auth","firebase","angular","vue","react","ionic"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/boeto/CapacitorGoogleAuth.git"},"bugs":{"url":"https://github.com/boeto/CapacitorGoogleAuth.git/issues"},"homepage":"https://github.com/boeto/CapacitorGoogleAuth#readme","_id":"@boeto/capacitor-google-auth@2.1.4","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-GNE6Ps8wS2X8TauYHUAmlMZqkEheE/CPbzQ+IEjkE1v5s4U8bcvJwoQ+QHKM35ufb46lmu+lkMw7UrR/cjEBjg==","shasum":"3d806890df8555e4a65941c33a9ed539bc12bc32","tarball":"https://registry.npmjs.org/@boeto/capacitor-google-auth/-/capacitor-google-auth-2.1.4.tgz","fileCount":45,"unpackedSize":120671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhC3EiCRA9TVsSAnZWagAA3DMP/RoccPN4qhEtGmSRkGKC\ntEtILnUYB1OaFCUKd1if84VZ4WgDK8IzUqLJyd3uzkGturQcQQdBbY3m0yjs\nopOCxYFMUC+HRmRUtszDiaNk1q8fEPpwGrrRuY98UGdCZoKl9uu8xsjqc/CY\nLAkopSL1atQr2nveJj5Nj6qyrV7yzPHTS2BDS/WFm5FAcMqW8QQFcYKy6ZNZ\nWZoVMMEZKROWDoko67YjXqJF6qaqZk70U1dhovYo/UjLstL4s/PGKijLNiFm\nCD9kRq5gXzF66n3X3IRGSWRQck49nTxTAW8/Yjl0b4CxRofnVYQFHCUEL50M\nNqk/cExvsGWN2+9dQorCOd5uIDUt59e/sdaLENiuSySBrhaUuEQ6z73yoQAA\nKMq+QyzMuShUpRCst/nHFSRJnpjVuJZeUAyegoPO4gIhCFTAqa7Hr5dwDiUO\nUDAoaI084Lf4UDR8dQ7GsxJiFDcXEGtpyWP7cd3u5tQmLDcLdwDUrxEZ76li\nKoO454stgKYU5LCTc+W9Goa8lfPhF3NFoHdnPt97hBhUjW/N6cpOcudL1uSb\nIyDpdzakD5J3W11bsSdRIBLalk/O5Tdg4HSIv/RyrOihykE/P5Y1DnnrOUJR\nNKXqwYqr/Mp8zEdymnx4MwbMAynBIneTjs1ZnkyE7jzcgpDW9NFBKGT86hsl\nwXhm\r\n=M0bE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8l/Y6P0NOrwhgriu4Bugs8NEP9TNxh1Q14FQwVT11DAiEAhwKH9jlvv+MQGbfcn6LxNMAcizqxb0a8TB1gqm7uErI="}]},"_npmUser":{"name":"boeto","email":"bo@eto.me"},"directories":{},"maintainers":[{"name":"boeto","email":"bo@eto.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-google-auth_2.1.4_1628139810690_0.25590480074556177"},"_hasShrinkwrap":false},"2.1.5":{"name":"@boeto/capacitor-google-auth","version":"2.1.5","description":"Google Auth plugin for capacitor.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"CodetrixStudio"},"license":"MIT","dependencies":{"@capacitor/core":"2.4.7"},"devDependencies":{"@capacitor/android":"2.4.7","@capacitor/ios":"2.4.7","@types/gapi":"0.0.36","@types/gapi.auth2":"0.0.50","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","google","auth","firebase","angular","vue","react","ionic"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/boeto/CapacitorGoogleAuth.git"},"bugs":{"url":"https://github.com/boeto/CapacitorGoogleAuth.git/issues"},"homepage":"https://github.com/boeto/CapacitorGoogleAuth#readme","_id":"@boeto/capacitor-google-auth@2.1.5","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-DdNZ0Q0RuU4I6TnjfbmxhrmrlFCXrZZUjvGSq22BbeOppDySVbu+3oHMLV2pGDd6EvOJNvbAqwnuBLbqwDUs9A==","shasum":"ecf050bc98082b30bc1cf551cb735b10bb3bef53","tarball":"https://registry.npmjs.org/@boeto/capacitor-google-auth/-/capacitor-google-auth-2.1.5.tgz","fileCount":45,"unpackedSize":120653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhC3TfCRA9TVsSAnZWagAAaWEP/34ZCU1hkaC75h9M1AvW\nZLaBu9sjy29cygtoZ+KCIOj+DfiIfq/03nIxXa/wqlPUGMUUq7KHPm945GNU\nwjUj3J0Tu1bgwvXmFFjTA1hui0B1iMSQdr8BY8pwVPn/obQ6uBOS69EgWjGg\nrvt5Iuwmnk9Fu4kFkysMzX4735zpAhL40RklTYe8YaNPylVLGe1bB3o1xn9W\nQqJJu5CsTi++nbgeMf8xTfYtesIyFqyo6iefno/PdHx+yUzdT+ldwXSygk8R\nQeXFcxjRkBR7puyZwsbXqwwjDyhsfWTT4pRCZ3N7rH76pP7KLktJ+K8gcWJl\nsXbLq6XNTzUK+TAeKLtLd8i2P74rBd5SumPDX0sB6oTqVsqV6u9Ax5rf2uKb\nmPkkgPvC8ow3Cn0f9BCJ5tScQZqA0/QkLun0YJn6J4JA2bVfPU4oP7ya22ab\nrzhN5iOmOHrHMCTn7zHWuei6tvYy9DkeMrSa4WVl07UccIySSzNZ7RXuzsxQ\nwxQfAvzUJcPaFFbjpPLXD5ZqSg8IZeZr1BDWjDXhzN1bCGeeNaxviPu9JEyH\nCitthfzEakEwRrhx40BWCqhS8CtkG41U5CDpoYLd9OBmqs0dydp//YOlZd92\nFHhiwoQw7Rl5SXI2c0R/7bqXBV5Cj1PG1I3XSgOPhQFMsaoJ9e7w57WX4m3z\nLB/m\r\n=gJ3V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzm2GcDV6SEE9zPh0vwb7EW4nhBsL4xiG7OjBwbAZbSAiAEY5hqkg5MVl31YNvUK13cSCs+zE2GeTw+p3x4MDZrOw=="}]},"_npmUser":{"name":"boeto","email":"bo@eto.me"},"directories":{},"maintainers":[{"name":"boeto","email":"bo@eto.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-google-auth_2.1.5_1628140767115_0.33299824159880265"},"_hasShrinkwrap":false},"2.1.6":{"name":"@boeto/capacitor-google-auth","version":"2.1.6","description":"Google Auth plugin for capacitor.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"CodetrixStudio"},"license":"MIT","dependencies":{"@capacitor/core":"2.4.7"},"devDependencies":{"@capacitor/android":"2.4.7","@capacitor/ios":"2.4.7","@types/gapi":"0.0.36","@types/gapi.auth2":"0.0.50","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","google","auth","firebase","angular","vue","react","ionic"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/boeto/CapacitorGoogleAuth.git"},"bugs":{"url":"https://github.com/boeto/CapacitorGoogleAuth.git/issues"},"homepage":"https://github.com/boeto/CapacitorGoogleAuth#readme","_id":"@boeto/capacitor-google-auth@2.1.6","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-EctQqYv1F8rEO/FdAoFv9ImC3oiZXkeZKgmb+87mcFytgIyraUATgwU/HeUxHclj4qP0dQmEszmRG7GtP9E//A==","shasum":"6ff8f678c3f6d155d633e28dfc8ea306b27507c0","tarball":"https://registry.npmjs.org/@boeto/capacitor-google-auth/-/capacitor-google-auth-2.1.6.tgz","fileCount":45,"unpackedSize":120626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhC3qpCRA9TVsSAnZWagAAhGMQAINEsKrmRxtJ7XV7GujJ\nRXzVtgCyauVV3qofyn5dKrITonYbqXTySooXewXCmTiE9PQB/GTOIK9PU6Sp\nU2QcsYbqTHmjF8rcA8P+RfKfbZb6ZdP1lubX6SYR7ZUe0Gh4VPaXefPXAq2S\ncZWvwILvyN5678ea59C/udU0ofjaax3KZpQega6ztxmd0DfEtHTTNBrOORfG\nBwENwzieUg1jyY8XzBAlj5V1ypo7Vz5w5EV5XcQ5BtFKx0CXMJ0b52DrXXbh\n65Do+SnSdTONluVMBNzE04QSVDoSlKOsirTDzX8yrY8swer5YEhWqYediZe1\nGTBJ3Co4GkcBkkbve3S2DVROyajpu5UoIYJNYC10D8HHk8RIfDmiA5Ptq95f\nG6CGZDdTn0v40LQIHnWlc29a5gPBx/aDn+5oky2eVz8tsaD5pCk7pyAV2dKZ\nbH2SFf36qvXEieoNqiIZbcZcsk/EV52YpF0H/rqRPAyrYuN4moEsqymFj0ik\nS0TLHaJgXw0dffnMRNAG70DsbXvHWnZfN2qyxB8EcfAuc15aI4UrvSBCc+eX\nWCs8bWSmP+yw8Fue3+9nKObn0ypkMgIwqJfEStvOb5Q3A3a3nYFmXhroZ7li\n66305zJ2IXzKl4wjghpQnpJ7by7G8CQE3r/XSHm7PaodOSqjX+IPgWy9tUFG\nWRXH\r\n=+Ic/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRfgFuni4UgG4nQBz+SUzIiWCKIqUefNVEzQM9qXGc/AIgdBZkuMZYWoss2EaueaMxHTfAp2N6NOGwXUoPt9T6c4M="}]},"_npmUser":{"name":"boeto","email":"bo@eto.me"},"directories":{},"maintainers":[{"name":"boeto","email":"bo@eto.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-google-auth_2.1.6_1628142249068_0.9566125987263472"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-05T05:03:30.638Z","2.1.4":"2021-08-05T05:03:30.891Z","modified":"2022-04-04T19:58:31.321Z","2.1.5":"2021-08-05T05:19:27.289Z","2.1.6":"2021-08-05T05:44:09.337Z"},"maintainers":[{"name":"boeto","email":"bo@eto.me"}],"description":"Google Auth plugin for capacitor.","homepage":"https://github.com/boeto/CapacitorGoogleAuth#readme","keywords":["capacitor","plugin","native","google","auth","firebase","angular","vue","react","ionic"],"repository":{"type":"git","url":"git+https://github.com/boeto/CapacitorGoogleAuth.git"},"author":{"name":"CodetrixStudio"},"bugs":{"url":"https://github.com/boeto/CapacitorGoogleAuth.git/issues"},"license":"MIT","readme":"# CapacitorGoogleAuth\nCapacitor plugin for Google Auth.\n\n### Install\n```bash\nnpm i --save @codetrix-studio/capacitor-google-auth\n\nnpx cap update\n```\n\n### WEB\nAdd [`clientId`](https://developers.google.com/identity/sign-in/web/sign-in#specify_your_apps_client_id) meta tag to head.\n```html\n<meta name=\"google-signin-client_id\" content=\"{your client id here}\">\n```\n\nRegister the plugin by importing it.\n```ts\nimport \"@codetrix-studio/capacitor-google-auth\";\n```\n\nUse it\n```ts\nimport { Plugins } from '@capacitor/core';\nPlugins.GoogleAuth.signIn();\n```\n\n\n\n### AngularFire2\n```ts\nasync googleSignIn() {\n  let googleUser = await Plugins.GoogleAuth.signIn();\n  const credential = auth.GoogleAuthProvider.credential(googleUser.authentication.idToken);\n  return this.afAuth.auth.signInAndRetrieveDataWithCredential(credential);\n}\n```\n\n### iOS\nMake sure you have `GoogleService-Info.plist` with `CLIENT_ID`\n\nAdd `REVERSED_CLIENT_ID` as url scheme to `Info.plist`\n\n### Android\nInside your `strings.xml`\n```xml\n<resources>\n  <string name=\"server_client_id\">Your Web Client Key</string>\n</resources>\n```\n\nImport package inside your `MainActivity`\n```java\nimport com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;\n```\n\nRegister plugin inside your `MainActivity.onCreate`\n```java\nthis.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{\n  add(GoogleAuth.class);\n}});\n```\n\n### Configure\nProvide configuration in root `capacitor.config.json`\n```json\n{\n  \"plugins\": {\n    \"GoogleAuth\": {\n      \"scopes\": [\"profile\", \"email\"],\n      \"serverClientId\": \"xxxxxx-xxxxxxxxxxxxxxxxxx.apps.googleusercontent.com\",\n      \"forceCodeForRefreshToken\" : true\n    }\n  }\n}\n\n```\n\nNote : `forceCodeForRefreshToken` force user to select email address to regenerate AuthCode used to get a valid refreshtoken (work on iOS and Android) (This is used for offline access and serverside handling)\n","readmeFilename":"README.md"}