You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
While bootstrapping an Angular app that requires the Google Cloud Endpoints, the library intermittently fails to bootstrap correctly resulting in an undefined window.gapi.auth object.
As per the documentation, GAuth.load or GAuth.checkAuth should be called in the run block to load the OAuth api after which it should be fine to proceed with calls that requires the apis when the promise resolves. This however does not seem to be the case as I have consistently run into intermittent errors where the promise resolves but calls to window.gapi.auth.setToken fail as the auth object is undefined.
This issue has happened in the current version 1.x.x as well as earlier version.s
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While bootstrapping an Angular app that requires the Google Cloud Endpoints, the library intermittently fails to bootstrap correctly resulting in an undefined
window.gapi.auth
object.As per the documentation,
GAuth.load
orGAuth.checkAuth
should be called in therun
block to load the OAuth api after which it should be fine to proceed with calls that requires the apis when the promise resolves. This however does not seem to be the case as I have consistently run into intermittent errors where the promise resolves but calls towindow.gapi.auth.setToken
fail as theauth
object is undefined.This issue has happened in the current version 1.x.x as well as earlier version.s
The text was updated successfully, but these errors were encountered: