8 lines
242 B
JavaScript
8 lines
242 B
JavaScript
export const isLoggedIn = getState => {
|
|
return typeof getState().get('me') === 'string';
|
|
};
|
|
|
|
export const getAccessToken = state => {
|
|
const me = state.getIn(['auth', 'me']);
|
|
return state.getIn(['auth', 'users', me, 'access_token']);
|
|
};
|