Giter VIP home page Giter VIP logo

app-extension-firebase-authentication's Introduction

firebase-authentication (quasar-app-extension-firebase-authentication)

This extension allows a developer to add basic core firebase authentication to their application. The main objectives are: Register Users & Log In

Prerequisites

  • You must have a firebase account, and access to your console
  • A registered app in firebase, and access to the web api keys

Installation & Uninstallation

Install:

quasar ext --add @quasar/firebase-authentication

Uninstall:

quasar ext --remove @quasar/firebase-authentication

Dependancies

quasar ext --add @quasar/dotenv

Usage

In order to use this extension, either add it to your app, or take it for a test run in the test app location in this app extension. fb-test-app

Note: The test app has had it's dotenv & firebase-authentication extensions removed to allow a fresh start.

  1. Add the dotenv extension and follow the prompts. The root object must be named: firebaseConfig. This is the name of the config object that will be place into the process.env object during build time.

  2. Next, install the firebase-authentication extension.

  3. Last, add a route for the login, and register user paths. For example:

{ path: '/login', name: 'Login', component: () => import('components/Q-AE-Auth.vue') },

{ path: '/register', name: 'Register', component: () => import('components/Q-AE-Auth.vue') }

If after the installation, you would like to modify your firebase authentication code for any reason, you can do so in the component installed from the app extension.

Configuration

You must add at least one .env file that you named when installing the dotenv app extension. If you forgot what you name your environment files, you can look in: /quasar.extensions.json

Once that file is created, get your api key from your firebase console, and then add the key into that .env file. Formatting is necessary for the environment file to be handled correctly. Here is an example:

Roadmap

  • Dynamic importing of other Quasar extensions
  • User Roles & Permissions
  • Optional integration with Firestore & Vuefire

License

Copyright (c) 2019-present Adam K. Purdy

MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.