apollo-auth

2.0.1 • Public • Published

apollo-auth

Authentication module for Apollo

Public Methods

Actions

getUserData fetch the logged in user object from the server

import { getUserData } from 'apollo-auth/dist/client/actions';

Usage

Reducer

import user from 'apollo-auth/dist/client/reducer';
 
const rootReducer = combineReducers({
    user
});

Routes

import AuthRoutes from 'apollo-auth/dist/client/routes';
 
const routes = (
    <Route component={App}>
        {AuthRoutes}
    </Route>
);

Readme

Keywords

Package Sidebar

Install

npm i apollo-auth

Weekly Downloads

6

Version

2.0.1

License

ISC

Last publish

Collaborators

  • alexmeah