Add hanko profile to example apps (#618)

This commit is contained in:
bjoern-m
2023-03-03 11:06:23 +01:00
committed by GitHub
parent e7a5c2df27
commit b12852737c
62 changed files with 1132 additions and 532 deletions

View File

@ -0,0 +1,15 @@
<script setup lang="ts">
import { register } from "@teamhanko/hanko-elements";
import { onMounted } from "vue";
const api = import.meta.env.VITE_HANKO_API;
const emit = defineEmits(["on-error"]);
onMounted(() => {
register({ shadow: true }).catch((e) => emit("on-error", e));
});
</script>
<template>
<hanko-profile :api="api" />
</template>