Skip to content

Instantly share code, notes, and snippets.

@zackdotcomputer
zackdotcomputer / FirebaseAuth.tsx
Created February 27, 2021 18:19
Next.js compatible Firebase Auth Button
/**
* This is a rewrite of the firebase/firebaseui-web-react auth button
* so that it supports Next.js's requirement that no css be imported
* in the node_modules directory. Instead, you should use this component
* and make sure that you add this import to your page file:
* > import "<path to>/node_modules/firebaseui/dist/firebaseui.css";
*
* This rewrite was done by Zack Sheppard (@zackdotcomputer) in Feb 2021.
* It is relicensed under Google's Apache 2 License below.
*/