/next-firebase-auth-ssr

🗝️ Firebase Authentication with NextJS 13 SSR (getServerSideProps)

Primary LanguageTypeScriptMIT LicenseMIT

next-firebase-auth-ssr

A small example repository of Server Side Rendered (SSR) Firebase Authentication in NextJS (getServerSideProps)

Packages

Getting Started

Install packages

yarn

Setup your .env.development file

Duplicate the .env.example file and rename it to .env.development. Replace the values with your own.

Run the firebase emulator

yarn firebase:emulate

This will create a firebase authentication instance on port 9099 for testing

Run the Next dev site

yarn dev

Acknowledgements