headless-vue
is a collection of Vue 3 composables.
-
If you don't have a Vue 3 app, have a look at Vue Quick Start guide.
-
We also assume that you are familiar with the basic concepts of the Composition API.
npm i @upmind-automation/headless-vue
Simply importing the composables (functions) you need from @upmind-automation/headless-vue
.
<script setup>
import { useSession } from "@upmind-automation/headless-vue";
const { meta, errors, showLogin, verify2fa, resolve, reject } = useSession();
return {
meta,
errors,
showLogin,
showRegister,
verify2fa,
resolve,
reject,
};
</script>
Refer to all functions list for more details.