parsley/app/javascript/lib/useCheckAuthentication.js

13 lines
299 B
JavaScript
Raw Normal View History

2024-09-29 13:35:49 -05:00
import { useAppConfigStore } from "../stores/appConfig";
export function useCheckAuthentication(loadResource) {
const appConfig = useAppConfigStore();
const checkAuthentication = function() {
return loadResource(appConfig.updateCurrentUser());
}
return {
checkAuthentication
}
}