Skip to content

Commit c9fca36

Browse files
reslearmrakowski0
andauthored
refactor: Add plugin_name to allow Web using depracated API (#208)
* 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 <[email protected]>
1 parent 4d05537 commit c9fca36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/web.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
6868

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

7577
if (this.options.scopes.length) {

0 commit comments

Comments
 (0)