Changed Backend to Supabase

This commit is contained in:
2023-11-26 17:15:55 +01:00
parent 8b76434b41
commit cb3d48d42c
22 changed files with 1420 additions and 346 deletions

View File

@@ -1,7 +1,8 @@
export default defineNuxtRouteMiddleware((to, _from) => {
const user = useStrapiUser()
const user = useSupabaseUser()
const router = useRouter()
if (!user.value) {
useCookie('redirect', { path: '/' }).value = to.fullPath
return navigateTo('/login')
//useCookie('redirect', { path: '/' }).value = to.fullPath
return router.push("/login")
}
})