This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/app/api/AuthAPI.jsx
2017-10-07 11:12:07 +07:00

17 lines
315 B
JavaScript

// - Import firebase components
import {firebaseAuth, firebaseRef} from 'app/firebase/';
import store from 'store/configureStore';
// - Check user if is authorized
export var isAuthorized = () => {
var state = store.getState();
return state.authorize.authed;
};
export var isAdmin = () =>{
return true;
};