title: Use Google Firebase Authentication without 3rd Party Cookies
body: <p>I'm currently experimenting with Social Media Sign-in and have realised something slightly strange on how these logins are delivered which is stemming from the fact that my workplace, like most offices, blocks 3rd party cookies as a security policy.</p>
  
  <p><a href="https://firebase.google.com/docs/auth/web/firebaseui" rel="noreferrer">Google Firebase Authentication</a> uses 3rd party cookies and so if I try to use Firebase, I'm redirected to the Google page (as expected) but when I'm redirected back to the originating webpage after logging in (and Firebase tries to set cookies), I get an error saying <code>This browser is not supported or 3rd party cookies and data may be disabled.</code></p>
  
  <p>However, <a href="https://docs.mongodb.com/stitch/authentication/" rel="noreferrer">MongoDB Stitch</a> somehow works and I'm able to actually login, even with 3rd party cookies disabled. I really can't seem to make sense of why that's the case but I'm hoping someone here can shed some light on it. If it helps, MongoDB Stitch asks that you set <code>https://stitch.mongodb.com</code> as Origin URI and <code>https://stitch.mongodb.com/api/client/v2.0/auth/callback</code> as Authorised Redirect URI in the Google Console - whilst you have to setup your own website URIs inside the MongoDB Console which I believe might be the difference?</p>
  
  <p>In any case, MongoDB Stitch's documentation is severely deficient (thanks to it still being in Public Beta) so I would really like to go the Google Firebase way if at all possible.</p>
  
  <ol>
  <li>Does anyone know how MongoDB Stitch is able to bypass setting 3rd Party Cookies</li>
  <li>How can I use Google Firebase Authentication whilst 3rd Party Cookies are disabled</li>
  </ol>