lbry-desktop/extras/lbryinc/redux/selectors/auth.js

8 lines
277 B
JavaScript
Raw Permalink Normal View History

import { createSelector } from 'reselect';
const selectState = state => state.auth || {};
export const selectAuthToken = createSelector(selectState, state => state.authToken);
export const selectIsAuthenticating = createSelector(selectState, state => state.authenticating);