diff --git a/app/app.vue b/app/app.vue
index 90350df..b138619 100644
--- a/app/app.vue
+++ b/app/app.vue
@@ -32,7 +32,6 @@ useSeoMeta({
-
diff --git a/app/components/header/HeaderAuth.vue b/app/components/header/HeaderAuth.vue
index 53eb1eb..ef624d5 100644
--- a/app/components/header/HeaderAuth.vue
+++ b/app/components/header/HeaderAuth.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/app/components/token/TokenCard.vue b/app/components/token/TokenCard.vue
index 93a9108..ae1561e 100644
--- a/app/components/token/TokenCard.vue
+++ b/app/components/token/TokenCard.vue
@@ -14,7 +14,6 @@ const remove = () => confirm('Delete Token', 'Are you sure you want to delete th
})
emit('reload')
success(meta.detail)
- await useApi().checkUser()
})
diff --git a/app/composables/api.ts b/app/composables/api.ts
index a06c040..3a2a942 100644
--- a/app/composables/api.ts
+++ b/app/composables/api.ts
@@ -22,7 +22,6 @@ export const useApi = () => {
alert(`Field: ${issue.path} Error: ${issue.message}`), 100 * (index + 1)),
)
}
-
const fetch = (
url: string | (() => string),
options?: Omit, 'default'> & { default: () => T | Ref },
@@ -50,15 +49,9 @@ export const useApi = () => {
return { fetch }
}
- const logout = async () => {
- await fetch('/api/logout')
- await navigateTo('/')
- }
-
return {
fetch,
setForm,
- logout,
success,
}
}
diff --git a/app/pages/index.vue b/app/pages/index.vue
index fb2bf8b..c7aeaa6 100644
--- a/app/pages/index.vue
+++ b/app/pages/index.vue
@@ -1,7 +1,10 @@
@@ -15,6 +18,7 @@ const { user } = useApi()
+
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 16b7650..dfa4044 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -10,6 +10,11 @@ export default defineNuxtConfig({
'@nuxt/image',
'nuxt-auth-utils',
],
+ runtimeConfig: {
+ session: {
+ maxAge: 60 * 60 * 24 * 365, // 1 year
+ },
+ },
eslint: {
config: {
standalone: false,