fix: Re-write Nuxt auth backend and get rid of sidebase auth (#6322)

This commit is contained in:
Michael Genson
2025-10-05 20:43:38 -05:00
committed by GitHub
parent fffe7b05e0
commit 6895b49543
30 changed files with 182 additions and 78 deletions

View File

@@ -21,7 +21,6 @@ import { useLoggedInState } from "~/composables/use-logged-in-state";
export default defineNuxtComponent({
components: { RecipeCardSection },
middleware: "sidebase-auth",
setup() {
const route = useRoute();
const i18n = useI18n();

View File

@@ -111,7 +111,7 @@ import { useUserApi } from "~/composables/api";
import type { VForm } from "~/types/auto-forms";
export default defineNuxtComponent({
middleware: ["sidebase-auth", "advanced-only"],
middleware: ["advanced-only"],
setup() {
const i18n = useI18n();
const $auth = useMealieAuth();

View File

@@ -213,7 +213,6 @@ export default defineNuxtComponent({
UserAvatar,
UserPasswordStrength,
},
middleware: "sidebase-auth",
setup() {
const i18n = useI18n();
const $auth = useMealieAuth();

View File

@@ -291,7 +291,6 @@ export default defineNuxtComponent({
UserAvatar,
StatsCards,
},
middleware: "sidebase-auth",
scrollToTop: true,
async setup() {
const i18n = useI18n();