@webgo/auth-service-firebase
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

⚠️ 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

Readme

Keywords

none

Package Sidebar

Install

npm i @webgo/auth-service-firebase

Weekly Downloads

0

Version

0.0.13

License

ISC

Unpacked Size

6.97 kB

Total Files

6

Last publish

Collaborators

  • alfonsodev