All Projects → hajola → nextjs-firebase-authentication

hajola / nextjs-firebase-authentication

Licence: other
⚠️ DEPRECATED! Example Next.js Firebase authentication application using iron session

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nextjs-firebase-authentication

Supertokens Core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
Stars: ✭ 2,907 (+10282.14%)
Mutual labels:  firebase-auth
Next Blog Firestore
Example of blog built with React, Next.js, Firebase Firestore, Styled-Component, Mobx State Tree and other cool technologies
Stars: ✭ 219 (+682.14%)
Mutual labels:  firebase-auth
FirebaseAI-Android-Chat-App
A simple firebase enabled chat app. SMS & Email Password Authentication enabled.
Stars: ✭ 38 (+35.71%)
Mutual labels:  firebase-auth
Makeitso
This is the source code for Make It So, the sample app accompanying my blog post "Replicating the iOS Reminders App Using SwiftUI and Firebase"
Stars: ✭ 181 (+546.43%)
Mutual labels:  firebase-auth
Firebase Kotlin Sdk
A Kotlin-first SDK for Firebase
Stars: ✭ 214 (+664.29%)
Mutual labels:  firebase-auth
Angularfire Lite
⚡️ Lightweight library to use Firebase API 🔥 with Angular
Stars: ✭ 245 (+775%)
Mutual labels:  firebase-auth
Space
A real time chat app for developers built using React, Redux, Electron and Firebase
Stars: ✭ 161 (+475%)
Mutual labels:  firebase-auth
mvp-sample
Demonstrates how to implement MVP (Model View Presenter) pattern using Kotlin, RXJava, Retrofit, Dagger and DataBinding
Stars: ✭ 35 (+25%)
Mutual labels:  firebase-auth
Tailor made
✄ Managing a Fashion designer's daily routine.
Stars: ✭ 219 (+682.14%)
Mutual labels:  firebase-auth
React Native Starter Kit
React Native Starter Kit with Firebase Auth and Facebook Login
Stars: ✭ 251 (+796.43%)
Mutual labels:  firebase-auth
Next Firebase Ssr
An Next.js example repo for building authenticated pages with Firebase Authentication, cookies, and getServerSideProps
Stars: ✭ 192 (+585.71%)
Mutual labels:  firebase-auth
Firebase Admin Dotnet
Firebase Admin .NET SDK
Stars: ✭ 201 (+617.86%)
Mutual labels:  firebase-auth
Firebase Ios Sdk
Firebase iOS SDK
Stars: ✭ 3,309 (+11717.86%)
Mutual labels:  firebase-auth
React Firebase
🔥Declarative React bindings for Firebase Auth & Realtime Database.
Stars: ✭ 176 (+528.57%)
Mutual labels:  firebase-auth
friendsmap
Basic Vue.js app with FirebaseUi auth
Stars: ✭ 28 (+0%)
Mutual labels:  firebase-auth
Finances
Simple finance control app as technology playground
Stars: ✭ 170 (+507.14%)
Mutual labels:  firebase-auth
Books jetpack
A sample application to demonstrate how to use Jetpack Architecture Components in an Android Application following the Clean Architecture concepts.
Stars: ✭ 241 (+760.71%)
Mutual labels:  firebase-auth
uMe
Online Chatting Application (Android) || Messaging App || Firebase
Stars: ✭ 138 (+392.86%)
Mutual labels:  firebase-auth
gatsby-firebase-simple-auth
Gatsby Starter with Firebase simple auth workflow and private routes
Stars: ✭ 64 (+128.57%)
Mutual labels:  firebase-auth
Firebaseui Angular
A wrapper for FirebaseUI in Angular
Stars: ✭ 245 (+775%)
Mutual labels:  firebase-auth

⚠️⚠️⚠️⚠️⚠️ DEPRECATED ⚠️⚠️⚠️⚠️⚠️

PLEASE USE https://next-auth.js.org/







\

📟 Old stuff:

Example Nextjs Firebase authentication application using next-iron-session

Inspired by the with-iron-session example.

This example creates an authentication system that uses a signed and encrypted cookie to store session data. It relies on next-iron-session.

It uses current best practices for authentication in the Next.js ecosystem.

Features:

  • Static Generation (SG), recommended example
  • Server-side Rendering (SSR) example in case you need it
  • Logged in status synchronized between browser windows/tabs using withUser hook and swr module
  • Layout based on the user's logged-in/out status
  • Session data is signed and encrypted in a cookie

next-iron-session also supports:

  • Express / Connect middlewares
  • Multiple encryption keys (password) to allow for seamless updates or just password rotation

How to use

Clone the example

Create two env files in the root folder: $ touch .env $ touch .env.build

.env: runtime environment variables .env.build: build step environment variables

Content of .env::

FIREBASE_API_KEY=XXXXXXX

FIREBASE_AUTH_DOMAIN=XXXXXXX.firebaseapp.com

FIREBASE_DATABASE_URL=https://XXXXXXX.firebaseio.com

FIREBASE_PROJECT_ID=XXXXXXX

FIREBASE_STORAGE_BUCKET=XXXXXXX.appspot.com

FIREBASE_MESSAGING_SENDER_ID=XXXXXXX

FIREBASE_APP_ID=1=XXXXXXX.web=XXXXXXX

FIREBASE_MEASUREMENT_ID=G=XXXXXXX

Content of .env.build::

FIREBASE_API_KEY=XXXXXXX

FIREBASE_AUTH_DOMAIN=XXXXXXX.firebaseapp.com

FIREBASE_DATABASE_URL=https://XXXXXXX.firebaseio.com

FIREBASE_PROJECT_ID=XXXXXXX

FIREBASE_STORAGE_BUCKET=XXXXXXX.appspot.com

FIREBASE_MESSAGING_SENDER_ID=XXXXXXX

FIREBASE_APP_ID=1=XXXXXXX.web=XXXXXXX

FIREBASE_MEASUREMENT_ID=G=XXXXXXX

FIREBASE_CLIENT_EMAIL=[email protected]

FIREBASE_PRIVATE_KEY=XXXXXX

Install it and run:

npm install
npm run dev
# or
yarn
yarn dev

Deploy it to the cloud with Vercel (Documentation).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].