0.0.13 • Published 5 years ago

@webgo/auth-service-firebase v0.0.13

Weekly downloads
1
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.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago