Initial git
This commit is contained in:
16
app/api/AuthAPI.jsx
Normal file
16
app/api/AuthAPI.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
// - 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user