13 lines
299 B
JavaScript
13 lines
299 B
JavaScript
|
import { useAppConfigStore } from "../stores/appConfig";
|
||
|
|
||
|
export function useCheckAuthentication(loadResource) {
|
||
|
const appConfig = useAppConfigStore();
|
||
|
const checkAuthentication = function() {
|
||
|
return loadResource(appConfig.updateCurrentUser());
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
checkAuthentication
|
||
|
}
|
||
|
}
|