0.0.5 • Published 5 years ago

auth-service-firebase v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

⚠️ Work in progress do not use it yet.

Auth Service

Install

yarn add @codefulness/`

TODO: description

Usage

const authFirebaseService = require('auth-service-firebase');

// TODO: DEMONSTRATE API

Actions

if you pass the optional dispatch funtion to the constructor, or inovoke auth.subscribe(dispatch) AuthFirebaseSerivce will observe the user authication state, and dispatch the following actions

AUTH_STATE_AUTHENTICATED : when the user signs in successfully.

{
  type: 'AUTH_STATE_AUTHENTICATED',
  payload: { user: Firebase.User }
}

AUTH_STATE_UNAUTHENTICATED :

{
  type: 'AUTH_STATE_UNAUTHENTICATED',
}

Reducers

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago