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-07-06 11:20:18 +04:30

17 lines
303 B
JavaScript

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