All files / @tech/auth/store selectors.js

55.56% Statements 10/18
100% Branches 0/0
11.11% Functions 1/9
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13      1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { getModuleState } from 'redux-register-module';
import { STATE_KEY } from './constants';
 
export const getAccessToken = state => getModuleState(STATE_KEY, state).accessToken;
export const getAuthState = state => getModuleState(STATE_KEY, state).state;
export const getAuthUsername = state => getModuleState(STATE_KEY, state).username;
export const getAuthPassword = state => getModuleState(STATE_KEY, state).password;
export const getUuid = state => getModuleState(STATE_KEY, state).uuid;
export const getOtp = state => getModuleState(STATE_KEY, state).otp;
export const getLoading = state => getModuleState(STATE_KEY, state).loading;
export const getActivated = state => getModuleState(STATE_KEY, state).activated;
export const getBiometryEnabled = state => getModuleState(STATE_KEY, state).biometry;