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-10 16:39:02 +07:00

17 lines
308 B
JavaScript

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