mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-22 08:51:19 -05:00
fix: Re-write Nuxt auth backend and get rid of sidebase auth (#6322)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
export default defineNuxtComponent({
|
||||
middleware: ["sidebase-auth", "can-organize-only"],
|
||||
middleware: ["can-organize-only"],
|
||||
setup() {
|
||||
const i18n = useI18n();
|
||||
const buttonLookup: { [key: string]: string } = {
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
import { useGroupSelf } from "~/composables/use-groups";
|
||||
|
||||
export default defineNuxtComponent({
|
||||
middleware: ["sidebase-auth", "can-manage-only"],
|
||||
middleware: ["can-manage-only"],
|
||||
setup() {
|
||||
const { group, actions: groupActions } = useGroupSelf();
|
||||
const i18n = useI18n();
|
||||
|
||||
@@ -127,7 +127,7 @@ const MIGRATIONS = {
|
||||
};
|
||||
|
||||
export default defineNuxtComponent({
|
||||
middleware: ["sidebase-auth", "advanced-only"],
|
||||
middleware: ["advanced-only"],
|
||||
setup() {
|
||||
const i18n = useI18n();
|
||||
const { $globals } = useNuxtApp();
|
||||
|
||||
@@ -52,7 +52,6 @@ import { useUserApi } from "~/composables/api";
|
||||
import type { ReportOut } from "~/lib/api/types/reports";
|
||||
|
||||
export default defineNuxtComponent({
|
||||
middleware: "sidebase-auth",
|
||||
setup() {
|
||||
const route = useRoute();
|
||||
const id = route.params.id as string;
|
||||
|
||||
Reference in New Issue
Block a user