This example creates an authentication system that uses a signed and encrypted cookie to store session data. It uses current best practices as for authentication in the Next.js ecosystem, we use useUser custom hook together with swr for data fetching.

  • Firebase Authentication with Email Passwordless Link is used to authenticate users.
  • Session data is signed and encrypted in a cookie.

firebase-auth-email-screenshot

iOS and Android mobile apps are also delivered. The apps are developed with React Native, anyone who is interested can test the development builds with iOS Simulator Build and Android Internal Distribution Build. If the build storage link has expired, please go to https://projects-jglchen.vercel.app/en/contact to request build files.

View the App

App GitHub

Docker: docker run -p 3000:3000 jglchen/firebase-auth-email

iOS Simulator Build

Android Internal Distribution Build

React Native GitHub

back To Series Home