diff --git a/src/GoogleAuthService.ts b/src/GoogleAuthService.ts index d217d5d..fe48ad8 100644 --- a/src/GoogleAuthService.ts +++ b/src/GoogleAuthService.ts @@ -16,8 +16,8 @@ export class GoogleAuthService { }); } - public getAuth(): Observable { - if (!this.GoogleAuth) { + public getAuth(newInstance = false): Observable { + if (!this.GoogleAuth || newInstance) { return this.googleApi.onLoad() .pipe(mergeMap(() => this.loadGapiAuth())); }