Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-simple-auth-firebase

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-simple-auth-firebase

Firebase Authenticator for Ember Simple Auth

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

#Firebase Authenticator for Ember Simple Auth This is a custom authenticator for the fantastic Ember Simple Auth project.

This addon currently only supports Firebase Email & Password authentication.

Installation

If you're using Ember CLI, installation is simple. Just issue the following two commands within your Ember project directory.

ember install ember-cli-simple-auth
ember install ember-cli-simple-auth-firebase

Alternatively, you can clone the project and copy the contents of the initializers and authenticators folder into your project.

Note: this addon is dependent on Ember Simple Auth, so make sure it's part of your project if you're copying in the addon manually.

Usage

After configuring Ember Simple Auth, you'll need to make sure your Firebase is configured in config/environment.js like so:

firebase: 'https://<firebase-name>.firebaseio.com/'

To use it, you can do something like this in one of your controllers:

import Ember from 'ember';

export default Ember.Controller.extend({

    actions: {
        login: function() {
            this.get('session').authenticate('authenticator:firebase', {
                'email': this.get('email'),
                'password': this.get('password')
            }).then(function() {
                this.transitionToRoute('index');
            }.bind(this));
        },
        logout: function() {
            this.get('session').invalidate().then(function() {
                this.transitionToRoute('login');
            }.bind(this));
        }
    }
});

Credits

Thanks to Simplabs for create Ember Simple Auth in the first place!

License

Released under the MIT License.

Keywords

FAQs

Package last updated on 12 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc