@floatingpixels/supabase-nuxt 0.3.5 → 0.4.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 +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/server/auth/confirm.js +2 -2
- package/package.json +15 -15
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -45,12 +45,12 @@ const module = defineNuxtModule({
|
|
|
45
45
|
serviceRoleKey: options.serviceRoleKey
|
|
46
46
|
};
|
|
47
47
|
addServerHandler({
|
|
48
|
-
route: "/
|
|
48
|
+
route: "/auth/confirm",
|
|
49
49
|
handler: resolve("./runtime/server/auth/confirm"),
|
|
50
50
|
method: "get"
|
|
51
51
|
});
|
|
52
52
|
addServerHandler({
|
|
53
|
-
route: "/
|
|
53
|
+
route: "/auth/callback",
|
|
54
54
|
handler: resolve("./runtime/server/auth/callback"),
|
|
55
55
|
method: "get"
|
|
56
56
|
});
|
|
@@ -4,7 +4,7 @@ export default defineEventHandler(async (event) => {
|
|
|
4
4
|
const query = getQuery(event);
|
|
5
5
|
const token_hash = query.token_hash;
|
|
6
6
|
const type = query.type;
|
|
7
|
-
const
|
|
7
|
+
const redirect_to = query.redirect_to ?? "/";
|
|
8
8
|
if (!token_hash || !type) {
|
|
9
9
|
throw createError({ statusMessage: "Invalid token" });
|
|
10
10
|
}
|
|
@@ -13,5 +13,5 @@ export default defineEventHandler(async (event) => {
|
|
|
13
13
|
if (error) {
|
|
14
14
|
throw createError({ statusMessage: error.message });
|
|
15
15
|
}
|
|
16
|
-
await sendRedirect(event,
|
|
16
|
+
await sendRedirect(event, redirect_to, 302);
|
|
17
17
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floatingpixels/supabase-nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Supabase module for Nuxt",
|
|
5
5
|
"repository": "floatingpixels/supabase-nuxt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,34 +60,34 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@supabase/ssr": "^0.5.2",
|
|
63
|
-
"@supabase/supabase-js": "^2.
|
|
63
|
+
"@supabase/supabase-js": "^2.48.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@nuxt/devtools": "^1.7.0",
|
|
67
|
-
"@nuxt/eslint-config": "^0.
|
|
68
|
-
"@nuxt/kit": "^3.15.
|
|
67
|
+
"@nuxt/eslint-config": "^1.0.0",
|
|
68
|
+
"@nuxt/kit": "^3.15.4",
|
|
69
69
|
"@nuxt/module-builder": "^0.8.4",
|
|
70
|
-
"@nuxt/schema": "^3.15.
|
|
70
|
+
"@nuxt/schema": "^3.15.4",
|
|
71
71
|
"@nuxt/test-utils": "3.15.4",
|
|
72
|
-
"@playwright/test": "^1.
|
|
73
|
-
"@snaplet/copycat": "^
|
|
72
|
+
"@playwright/test": "^1.50.1",
|
|
73
|
+
"@snaplet/copycat": "^6.0.0",
|
|
74
74
|
"@snaplet/seed": "^0.98.0",
|
|
75
75
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
76
|
-
"@types/node": "^22.
|
|
76
|
+
"@types/node": "^22.13.1",
|
|
77
77
|
"@vitest/coverage-v8": "2.1.8",
|
|
78
78
|
"@vue/test-utils": "^2.4.6",
|
|
79
79
|
"changelogen": "^0.5.7",
|
|
80
|
-
"eslint": "^9.
|
|
80
|
+
"eslint": "^9.19.0",
|
|
81
81
|
"eslint-config-prettier": "^10.0.1",
|
|
82
|
-
"happy-dom": "^16.
|
|
83
|
-
"nuxt": "^3.15.
|
|
84
|
-
"playwright-core": "^1.
|
|
82
|
+
"happy-dom": "^16.8.1",
|
|
83
|
+
"nuxt": "^3.15.4",
|
|
84
|
+
"playwright-core": "^1.50.1",
|
|
85
85
|
"postgres": "^3.4.5",
|
|
86
86
|
"prettier": "^3.4.2",
|
|
87
|
-
"release-it": "^18.1.
|
|
88
|
-
"supabase": "^2.6
|
|
87
|
+
"release-it": "^18.1.2",
|
|
88
|
+
"supabase": "^2.9.6",
|
|
89
89
|
"typescript": "5.7.3",
|
|
90
|
-
"vitest": "^2.1.
|
|
90
|
+
"vitest": "^2.1.9",
|
|
91
91
|
"vue-tsc": "^2.2.0"
|
|
92
92
|
}
|
|
93
93
|
}
|