@floatingpixels/supabase-nuxt 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">3.0.0"
6
6
  },
7
- "version": "0.1.9"
7
+ "version": "0.2.0"
8
8
  }
@@ -4,7 +4,7 @@ export default defineNuxtPlugin({
4
4
  name: "middleware-auth-redirect",
5
5
  setup() {
6
6
  addRouteMiddleware(
7
- "02-global-auth-redirect",
7
+ "01-global-auth-redirect",
8
8
  defineNuxtRouteMiddleware(async (to) => {
9
9
  const config = useRuntimeConfig().public.supabase;
10
10
  const { login, exclude } = config.redirectOptions;
@@ -16,7 +16,7 @@ export default defineNuxtPlugin({
16
16
  return;
17
17
  const user = await useSupabaseUser();
18
18
  if (!user) {
19
- return navigateTo("/login");
19
+ return navigateTo("/login", { redirectCode: 302 });
20
20
  }
21
21
  }),
22
22
  { global: true }
@@ -13,6 +13,5 @@ export default defineEventHandler(async (event) => {
13
13
  if (error) {
14
14
  throw createError({ statusMessage: error.message });
15
15
  }
16
- console.log("EMail OTP verified");
17
16
  await sendRedirect(event, next, 302);
18
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floatingpixels/supabase-nuxt",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "Supabase module for Nuxt",
5
5
  "repository": "floatingpixels/supabase-nuxt",
6
6
  "license": "MIT",
@@ -44,8 +44,8 @@
44
44
  "test:watch": "vitest watch"
45
45
  },
46
46
  "dependencies": {
47
- "@nuxt/kit": "^3.9.3",
48
- "@supabase/ssr": "^0.0.10",
47
+ "@nuxt/kit": "^3.10.0",
48
+ "@supabase/ssr": "^0.1.0",
49
49
  "@supabase/supabase-js": "^2.39.3",
50
50
  "defu": "^6.1.4"
51
51
  },
@@ -53,15 +53,15 @@
53
53
  "@nuxt/devtools": "^1.0.8",
54
54
  "@nuxt/eslint-config": "^0.2.0",
55
55
  "@nuxt/module-builder": "^0.5.5",
56
- "@nuxt/schema": "^3.9.3",
56
+ "@nuxt/schema": "^3.10.0",
57
57
  "@nuxt/test-utils": "^3.11.0",
58
- "@types/node": "^20.11.10",
58
+ "@types/node": "^20.11.15",
59
59
  "@vue/test-utils": "^2.4.4",
60
60
  "changelogen": "^0.5.5",
61
61
  "eslint": "^8.56.0",
62
62
  "eslint-config-prettier": "^9.1.0",
63
- "happy-dom": "^13.3.4",
64
- "nuxt": "^3.9.3",
63
+ "happy-dom": "^13.3.8",
64
+ "nuxt": "^3.10.0",
65
65
  "playwright-core": "^1.41.1",
66
66
  "prettier": "^3.2.4",
67
67
  "release-it": "^17.0.3",