File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export interface GoogleAuthPlugin {
143143 * @param options - Optional initialization options.
144144 * @since 3.1.0
145145 */
146- initialize ( options ?: InitOptions ) : void ;
146+ initialize ( options ?: InitOptions ) : Promise < void > ;
147147
148148 /**
149149 * 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 {
3939 scopes : [ ] ,
4040 grantOfflineAccess : false ,
4141 }
42- ) {
42+ ) : Promise < void > {
4343 if ( typeof window === 'undefined' ) {
4444 return ;
4545 }
@@ -64,6 +64,7 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
6464 } ) ;
6565
6666 this . addUserChangeListener ( ) ;
67+ return this . gapiLoaded ;
6768 }
6869
6970 platformJsLoaded ( ) {
You can’t perform that action at this time.
0 commit comments