oAuthConfigLoaded()

in frontend/app/index.tsx [75:86]


  oAuthConfigLoaded(oAuthConfig: OAuthContextData) {
    //if we already have a user token at mount, verify it and update our internal state
    //if we don't, ignore for the time being; it will be set dynamically when the login occurs
    console.log("loaded oauthconfig: ", oAuthConfig);
    if (this.haveToken()) {
      verifyExistingLogin(oAuthConfig)
        .then((profile) => this.setState({ userProfile: profile }))
        .catch((err) => {
          console.error("Could not verify existing user profile: ", err);
        });
    }
  }