Skip to content

Commit

Permalink
refactor: Add plugin_name to allow Web using depracated API (#208)
Browse files Browse the repository at this point in the history
* Add plugin_name to allow Web using depracated API

* test

* try to fix compliation issue

* get rid of outdated type

* refactor: add CodetrixStudioCapacitorGoogleAuth

Co-authored-by: Michal Rakowski <m.rakowski91@gmail.com>
  • Loading branch information
reslear and mrakowski0 authored Jun 10, 2022
1 parent 4d05537 commit c9fca36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {

platformJsLoaded() {
gapi.load('auth2', () => {
const clientConfig: gapi.auth2.ClientConfig = {
// https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues/202#issuecomment-1147393785
const clientConfig: gapi.auth2.ClientConfig & { plugin_name: string } = {
client_id: this.options.clientId,
plugin_name: 'CodetrixStudioCapacitorGoogleAuth',
};

if (this.options.scopes.length) {
Expand Down

0 comments on commit c9fca36

Please sign in to comment.