bigbuffet-rw/app/soapbox/utils/auth.js
2021-03-30 00:23:29 -05:00

8 lines
230 B
JavaScript

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