feat: add verify-email page, wip
This commit is contained in:
parent
a15f85a082
commit
9f6490d744
1 changed files with 32 additions and 0 deletions
32
pages/verify-email.vue
Normal file
32
pages/verify-email.vue
Normal file
|
@ -0,0 +1,32 @@
|
|||
<template>
|
||||
<div id="container">
|
||||
<div v-if="errorMessage">
|
||||
{{ errorMessage }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
|
||||
const errorMessage = ref();
|
||||
|
||||
const token = useRoute().query.token;
|
||||
|
||||
try {
|
||||
const res = await fetchWithApi("/auth/verify-email", { query: { token } });
|
||||
console.log("hi");
|
||||
} catch (error) {
|
||||
console.error("Error verifying email:", error);
|
||||
errorMessage.value = error;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
#container {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue