In progress changes for ensuring that new clients are written to the database.

This commit is contained in:
Patrick Fic
2019-12-10 18:43:46 -08:00
parent 88857800e6
commit 0cb9065dba
11 changed files with 97 additions and 91 deletions

View File

@@ -22,13 +22,6 @@ class App extends React.Component {
this.unsubscribeFromAuth = auth.onAuthStateChanged(async user => {
console.log("Current User:", user);
if (user) {
// client
// .mutate({
// mutation: UPSERT_USER,
// variables: { authEmail: user.email, authToken: user.uid }
// })
// .then(r => console.log("Successful Upsert", r))
// .catch(error => console.log("Upsert error!!!!", error));
const token = await user.getIdToken();
const idTokenResult = await user.getIdTokenResult();