From 6ea978d1b9939963490ef8669f254bfe4ee2ffc9 Mon Sep 17 00:00:00 2001 From: Alan Grosz Date: Mon, 26 Nov 2018 14:24:19 -0300 Subject: [PATCH] Optional new GoogleAuth instance creation, to load new configuration --- src/GoogleAuthService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())); }