All Projects → marcomelilli → gatsby-firebase-simple-auth

marcomelilli / gatsby-firebase-simple-auth

Licence: MIT license
Gatsby Starter with Firebase simple auth workflow and private routes

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to gatsby-firebase-simple-auth

Space
A real time chat app for developers built using React, Redux, Electron and Firebase
Stars: ✭ 161 (+151.56%)
Mutual labels:  firebase-auth
Firebase Kotlin Sdk
A Kotlin-first SDK for Firebase
Stars: ✭ 214 (+234.38%)
Mutual labels:  firebase-auth
Firebaseui Angular
A wrapper for FirebaseUI in Angular
Stars: ✭ 245 (+282.81%)
Mutual labels:  firebase-auth
Supertokens Core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
Stars: ✭ 2,907 (+4442.19%)
Mutual labels:  firebase-auth
Nodejs Auth
Implementation of node.js authentication with social login ✌️, user impersonation 💅, and no passport.js required 💁
Stars: ✭ 201 (+214.06%)
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 (+242.19%)
Mutual labels:  firebase-auth
React Firebase Hooks
React Hooks for Firebase.
Stars: ✭ 2,227 (+3379.69%)
Mutual labels:  firebase-auth
friendsmap
Basic Vue.js app with FirebaseUi auth
Stars: ✭ 28 (-56.25%)
Mutual labels:  firebase-auth
Firebase Admin Dotnet
Firebase Admin .NET SDK
Stars: ✭ 201 (+214.06%)
Mutual labels:  firebase-auth
Firebase Ios Sdk
Firebase iOS SDK
Stars: ✭ 3,309 (+5070.31%)
Mutual labels:  firebase-auth
React Firebase
🔥Declarative React bindings for Firebase Auth & Realtime Database.
Stars: ✭ 176 (+175%)
Mutual labels:  firebase-auth
Next Firebase Ssr
An Next.js example repo for building authenticated pages with Firebase Authentication, cookies, and getServerSideProps
Stars: ✭ 192 (+200%)
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 (+276.56%)
Mutual labels:  firebase-auth
Finances
Simple finance control app as technology playground
Stars: ✭ 170 (+165.63%)
Mutual labels:  firebase-auth
React Native Starter Kit
React Native Starter Kit with Firebase Auth and Facebook Login
Stars: ✭ 251 (+292.19%)
Mutual labels:  firebase-auth
Explore
A Flutter Web responsive website sample.
Stars: ✭ 146 (+128.13%)
Mutual labels:  firebase-auth
Tailor made
✄ Managing a Fashion designer's daily routine.
Stars: ✭ 219 (+242.19%)
Mutual labels:  firebase-auth
gatsby-react-boilerplate
Gatsbyjs boilerplate
Stars: ✭ 59 (-7.81%)
Mutual labels:  gatsby-starter
FirebaseAI-Android-Chat-App
A simple firebase enabled chat app. SMS & Email Password Authentication enabled.
Stars: ✭ 38 (-40.62%)
Mutual labels:  firebase-auth
Angularfire Lite
⚡️ Lightweight library to use Firebase API 🔥 with Angular
Stars: ✭ 245 (+282.81%)
Mutual labels:  firebase-auth
Logo

Gatsby Firebase Authentication Starter

This is a gatsby starter to show how an authentication workflow is implemented in Gatsby using Firebase as authentication provider.

🚀 Here a live demo of the site.

This starter follows the best practices described in the official gatsby site:

It uses Gatsby Plugin Create Client Path to set private routes.

How it works in short:

  • Gatsby renders all unauthenticated routes as usual static pages.
  • Authenticated routes are whitelisted as client-only (in this starter all dynamic pages are under the path 'mysite.com/app/*').
  • Logged-out users are redirected to the login page if they attempt to visit private routes.
  • Logged-in users will see their private content.

Getting started with Firebase

Copy and rename .env.sample to .env.development and .env.production in your root directory. Use these environment variables for Firebase:

FIREBASE_API_KEY=<YOUR_FIREBASE_API_KEY>
FIREBASE_AUTH_DOMAIN=<YOUR_FIREBASE_AUTH_DOMAIN>
FIREBASE_DATABASE_URL=<YOUR_FIREBASE_DATABASE_URL>
FIREBASE_PROJECT_ID=<YOUR_FIREBASE_PROJECT_ID>
FIREBASE_STORAGE_BUCKET=<YOUR_FIREBASE_STORAGE_BUCKET>
FIREBASE_MESSAGING_SENDER_ID=<YOUR_FIREBASE_MESSAGING_SENDER_ID>
FIREBASE_APP_ID=<YOUR_FIREBASE_APP_ID>

Start developing

npm install
gatsby develop 

Contributing

If you want to contribute to this starter, consider:

  • Reporting bugs and errors
  • Improve the documentation
  • Creating new features and pull requests

All contributions are welcome!

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].