Skip to content

Commit

Permalink
Merge pull request #76 from lalogrosz/master
Browse files Browse the repository at this point in the history
Optional new GoogleAuth instance creation, to load new configuration
  • Loading branch information
rubenCodeforges authored Nov 27, 2018
2 parents 9773bb3 + 6ea978d commit f1cb0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoogleAuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export class GoogleAuthService {
});
}

public getAuth(): Observable<GoogleAuth> {
if (!this.GoogleAuth) {
public getAuth(newInstance = false): Observable<GoogleAuth> {
if (!this.GoogleAuth || newInstance) {
return this.googleApi.onLoad()
.pipe(mergeMap(() => this.loadGapiAuth()));
}
Expand Down

0 comments on commit f1cb0ad

Please sign in to comment.