Skip to content

Commit 101e3c9

Browse files
committed
fix(components): fix components imports
1 parent f7459fe commit 101e3c9

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/runtime/components/auth/base/EdgeDbAuthLogout.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import { useEdgeDbIdentity } from '../../../composables/useEdgeDbIdentity'
3+
24
const props = withDefaults(
35
defineProps<{
46
redirectTo?: string

src/runtime/components/auth/oauth/EdgeDbOAuthButton.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const error = ref()
1414
async function redirect(provider: string = props.provider) {
1515
loading.value = true
1616
try {
17-
const redirectTo = await $fetch(`/api/auth/authorize?provider=${provider}`) as { redirect: string }
17+
const redirectTo = await $fetch(`/api/auth/authorize?provider=${provider}`)
18+
1819
if (redirectTo)
1920
window.location.href = redirectTo.redirect
2021
}

src/runtime/components/auth/oauth/EdgeDbOAuthCallback.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import { computed, ref } from 'vue'
3+
import { useEdgeDbIdentity } from '../../../composables/useEdgeDbIdentity'
34
import { navigateTo, useRouter } from '#imports'
45
56
const props = withDefaults(

0 commit comments

Comments
 (0)