In progress changes for ensuring that new clients are written to the database.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user