Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export interface GoogleAuthPlugin {
* @param options - Optional initialization options.
* @since 3.1.0
*/
initialize(options?: InitOptions): void;
initialize(options?: InitOptions): Promise<void>;

/**
* Initiates the sign-in process and returns a Promise that resolves with the user information.
Expand Down
3 changes: 2 additions & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
scopes: [],
grantOfflineAccess: false,
}
) {
): Promise<void> {
if (typeof window === 'undefined') {
return;
}
Expand All @@ -64,6 +64,7 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
});

this.addUserChangeListener();
return this.gapiLoaded;
}

platformJsLoaded() {
Expand Down