2018-07-23 14:12:18 +01:00
|
|
|
import { createSelector } from 'reselect';
|
|
|
|
|
2018-08-17 19:10:52 +01:00
|
|
|
const selectState = state => state.auth || {};
|
2018-07-23 14:12:18 +01:00
|
|
|
|
|
|
|
export const selectAuthToken = createSelector(selectState, state => state.authToken);
|
2018-08-17 19:10:52 +01:00
|
|
|
|
|
|
|
export const selectIsAuthenticating = createSelector(selectState, state => state.authenticating);
|