Replaced the requireAuth method with requireUser to improve clarity and modified all instances where it was used. Renamed the import throughout multiple files and services and made changes accordingly, thus making it more specific and understandable that a logged-in user is needed. The return type of the method was also updated from Session to User to more accurately reflect the information it provides.
57 lines
1.6 KiB
JSON
57 lines
1.6 KiB
JSON
{
|
|
"name": "@kit/supabase",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"scripts": {
|
|
"clean": "git clean -xdf .turbo node_modules",
|
|
"format": "prettier --check \"**/*.{ts,tsx}\"",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"prettier": "@kit/prettier-config",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./middleware-client": "./src/clients/middleware.client.ts",
|
|
"./server-actions-client": "./src/clients/server-actions.client.ts",
|
|
"./route-handler-client": "./src/clients/route-handler.client.ts",
|
|
"./server-component-client": "./src/clients/server-component.client.ts",
|
|
"./browser-client": "./src/clients/browser.client.ts",
|
|
"./check-requires-mfa": "./src/check-requires-mfa.ts",
|
|
"./require-user": "./src/require-user.ts",
|
|
"./hooks/*": "./src/hooks/*.ts",
|
|
"./components/*": "./src/components/*.tsx",
|
|
"./database": "./src/database.types.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@epic-web/invariant": "^1.0.0",
|
|
"@kit/eslint-config": "workspace:*",
|
|
"@kit/prettier-config": "workspace:*",
|
|
"@kit/tailwind-config": "workspace:*",
|
|
"@kit/tsconfig": "workspace:*",
|
|
"@supabase/gotrue-js": "2.62.2",
|
|
"@supabase/ssr": "^0.1.0",
|
|
"@supabase/supabase-js": "^2.41.1",
|
|
"@tanstack/react-query": "5.28.6"
|
|
},
|
|
"peerDependencies": {
|
|
"@epic-web/invariant": "^1.0.0",
|
|
"@supabase/ssr": "^0.1.0",
|
|
"@supabase/supabase-js": "^2.40.0",
|
|
"@tanstack/react-query": "^5.28.6"
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"extends": [
|
|
"@kit/eslint-config/base",
|
|
"@kit/eslint-config/react"
|
|
]
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"src/*"
|
|
]
|
|
}
|
|
}
|
|
}
|