File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export interface GoogleAuthPlugin {
143
143
* @param options - Optional initialization options.
144
144
* @since 3.1.0
145
145
*/
146
- initialize ( options ?: InitOptions ) : void ;
146
+ initialize ( options ?: InitOptions ) : Promise < void > ;
147
147
148
148
/**
149
149
* Initiates the sign-in process and returns a Promise that resolves with the user information.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
39
39
scopes : [ ] ,
40
40
grantOfflineAccess : false ,
41
41
}
42
- ) {
42
+ ) : Promise < void > {
43
43
if ( typeof window === 'undefined' ) {
44
44
return ;
45
45
}
@@ -64,6 +64,7 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
64
64
} ) ;
65
65
66
66
this . addUserChangeListener ( ) ;
67
+ return this . gapiLoaded ;
67
68
}
68
69
69
70
platformJsLoaded ( ) {
You can’t perform that action at this time.
0 commit comments