@cedarjs/auth-supabase-middleware 5.0.2-rc.5 → 5.0.2
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/cjs/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/cjs/index.js
CHANGED
|
@@ -45,7 +45,7 @@ const initSupabaseAuthMiddleware = ({
|
|
|
45
45
|
const currentUser = await getCurrentUser(
|
|
46
46
|
decoded,
|
|
47
47
|
{ type, token: cookieHeader, schema: "cookie" },
|
|
48
|
-
{ event: req }
|
|
48
|
+
{ event: req, request: req }
|
|
49
49
|
);
|
|
50
50
|
if (req.url.includes(`/middleware/supabase/currentUser`)) {
|
|
51
51
|
res.body = // Not sure how currentUser can be string.... but types say so
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const initSupabaseAuthMiddleware = ({
|
|
|
22
22
|
const currentUser = await getCurrentUser(
|
|
23
23
|
decoded,
|
|
24
24
|
{ type, token: cookieHeader, schema: "cookie" },
|
|
25
|
-
{ event: req }
|
|
25
|
+
{ event: req, request: req }
|
|
26
26
|
);
|
|
27
27
|
if (req.url.includes(`/middleware/supabase/currentUser`)) {
|
|
28
28
|
res.body = // Not sure how currentUser can be string.... but types say so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/auth-supabase-middleware",
|
|
3
|
-
"version": "5.0.2
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"test:watch": "vitest watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@cedarjs/auth-supabase-api": "5.0.2
|
|
42
|
-
"@cedarjs/web": "5.0.2
|
|
41
|
+
"@cedarjs/auth-supabase-api": "5.0.2",
|
|
42
|
+
"@cedarjs/web": "5.0.2",
|
|
43
43
|
"@supabase/ssr": "0.12.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@arethetypeswrong/cli": "0.18.4",
|
|
47
|
-
"@cedarjs/api": "5.0.2
|
|
48
|
-
"@cedarjs/auth": "5.0.2
|
|
49
|
-
"@cedarjs/framework-tools": "5.0.2
|
|
50
|
-
"@cedarjs/graphql-server": "5.0.2
|
|
47
|
+
"@cedarjs/api": "5.0.2",
|
|
48
|
+
"@cedarjs/auth": "5.0.2",
|
|
49
|
+
"@cedarjs/framework-tools": "5.0.2",
|
|
50
|
+
"@cedarjs/graphql-server": "5.0.2",
|
|
51
51
|
"@types/aws-lambda": "8.10.162",
|
|
52
52
|
"concurrently": "9.2.1",
|
|
53
53
|
"publint": "0.3.21",
|