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>
);

/apollo-auth/

    Package Sidebar

    Install

    npm i apollo-auth

    Weekly Downloads

    13

    Version

    2.0.1

    License

    ISC

    Last publish

    Collaborators

    • alexmeah