title: React.js - error when try to authorize with firebase gmail token
body: <p>In react I use firebase Gmail login. Then I save the Gmail token, userId. And try to use the token when I post some values. but always I got an error. I don't understand how to verify this token.</p>
  <pre><code>
  export const inputIn = (data, token) =&gt; {
    return (dispatch) =&gt; {
      axios
        .post(&quot;https://auth-by-f038f-default-rtdb.firebaseio.com/AllInputes.json?auth&quot; + token , data)
        .then((response) =&gt; {
          dispatch(inputSuccess(response.data.name, data));
        })
        .catch((err) =&gt; {
          console.log(&quot;error: &quot;, err);
        });
      
    };
  };
  </code></pre>
  <p>rules in firebase:</p>
  <pre><code>{
    &quot;rules&quot;: {
        &quot;AllInputes&quot;:{
        &quot;.read&quot;: &quot;auth != null&quot;,
        &quot;.write&quot;: &quot;auth != null&quot;,
          &quot;.indexOn&quot;: [&quot;userId&quot;]
        }
    }
  }
  </code></pre>
  <p>errors:</p>
  <pre><code>xhr.js:177 POST https://auth-b....com/AllInputes.json?authya29.A0Af... 401 (Unauthorized)
  
  error:  Error: Request failed with status code 401
      at createError (createError.js:16)
      at settle (settle.js:17)
      at XMLHttpRequest.handleLoad (xhr.js:62)
  </code></pre>