refactor: remove supabase auth

This commit is contained in:
Henry
2025-05-05 15:16:30 +01:00
parent 091fea6f38
commit b6daaa41de
42 changed files with 319 additions and 1591 deletions

151
pnpm-lock.yaml generated
View File

@@ -93,9 +93,6 @@ importers:
'@kan/shared':
specifier: workspace:^
version: link:../../packages/shared
'@kan/supabase':
specifier: workspace:^
version: link:../../packages/supabase
'@t3-oss/env-nextjs':
specifier: ^0.11.1
version: 0.11.1(typescript@5.7.2)(zod@3.24.0)
@@ -150,9 +147,6 @@ importers:
react-lottie-player:
specifier: ^1.5.5
version: 1.5.6(react@18.3.1)
stripe:
specifier: ^17.5.0
version: 17.5.0
superjson:
specifier: 2.2.1
version: 2.2.1
@@ -169,6 +163,9 @@ importers:
'@kan/prettier-config':
specifier: workspace:*
version: link:../../tooling/prettier
'@kan/stripe':
specifier: workspace:*
version: link:../../packages/stripe
'@kan/tailwind-config':
specifier: workspace:*
version: link:../../tooling/tailwind
@@ -223,9 +220,9 @@ importers:
'@kan/shared':
specifier: workspace:^
version: link:../shared
'@kan/supabase':
'@kan/stripe':
specifier: workspace:^
version: link:../supabase
version: link:../stripe
'@trpc/server':
specifier: 'catalog:'
version: 11.0.0-rc.660(typescript@5.7.2)
@@ -267,6 +264,9 @@ importers:
'@kan/db':
specifier: workspace:*
version: link:../db
'@kan/email':
specifier: workspace:*
version: link:../email
'@kan/eslint-config':
specifier: workspace:*
version: link:../../tooling/eslint
@@ -276,6 +276,9 @@ importers:
'@kan/shared':
specifier: workspace:*
version: link:../shared
'@kan/stripe':
specifier: workspace:*
version: link:../stripe
'@kan/tsconfig':
specifier: workspace:*
version: link:../../tooling/typescript
@@ -388,20 +391,11 @@ importers:
specifier: 'catalog:'
version: 5.7.2
packages/supabase:
packages/stripe:
dependencies:
'@edge-runtime/cookies':
specifier: ^6.0.0
version: 6.0.0
'@kan/db':
specifier: workspace:^
version: link:../db
'@supabase/ssr':
specifier: ^0.5.2
version: 0.5.2(@supabase/supabase-js@2.47.3(bufferutil@4.0.8)(utf-8-validate@6.0.3))
'@supabase/supabase-js':
specifier: ^2.47.3
version: 2.47.3(bufferutil@4.0.8)(utf-8-validate@6.0.3)
stripe:
specifier: ^18.1.0
version: 18.1.0(@types/node@20.17.9)
devDependencies:
'@kan/eslint-config':
specifier: workspace:*
@@ -415,9 +409,6 @@ importers:
eslint:
specifier: 'catalog:'
version: 9.16.0(jiti@1.21.6)
next:
specifier: ^14.2.15
version: 14.2.20(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
prettier:
specifier: 'catalog:'
version: 3.4.2
@@ -640,10 +631,6 @@ packages:
'@drizzle-team/brocli@0.10.2':
resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}
'@edge-runtime/cookies@6.0.0':
resolution: {integrity: sha512-VVO/8AwC2qVbygLb2IOkX1zWFx2yWIHzFv4D602CTnoRffd/+cdcXqpSydKaedFrk7a1dRYXbWwjzfV/gwZ2Gw==}
engines: {node: '>=18'}
'@emnapi/runtime@1.3.1':
resolution: {integrity: sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==}
@@ -1744,33 +1731,6 @@ packages:
'@socket.io/component-emitter@3.1.2':
resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}
'@supabase/auth-js@2.66.1':
resolution: {integrity: sha512-kOW+04SuDXmP2jRX9JL1Rgzduj8BcOG1qC3RaWdZsxnv89svNCdLRv8PfXW3QPKJdw0k1jF30OlQDPkzbDEL9w==}
'@supabase/functions-js@2.4.3':
resolution: {integrity: sha512-sOLXy+mWRyu4LLv1onYydq+10mNRQ4rzqQxNhbrKLTLTcdcmS9hbWif0bGz/NavmiQfPs4ZcmQJp4WqOXlR4AQ==}
'@supabase/node-fetch@2.6.15':
resolution: {integrity: sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==}
engines: {node: 4.x || >=6.0.0}
'@supabase/postgrest-js@1.16.3':
resolution: {integrity: sha512-HI6dsbW68AKlOPofUjDTaosiDBCtW4XAm0D18pPwxoW3zKOE2Ru13Z69Wuys9fd6iTpfDViNco5sgrtnP0666A==}
'@supabase/realtime-js@2.11.2':
resolution: {integrity: sha512-u/XeuL2Y0QEhXSoIPZZwR6wMXgB+RQbJzG9VErA3VghVt7uRfSVsjeqd7m5GhX3JR6dM/WRmLbVR8URpDWG4+w==}
'@supabase/ssr@0.5.2':
resolution: {integrity: sha512-n3plRhr2Bs8Xun1o4S3k1CDv17iH5QY9YcoEvXX3bxV1/5XSasA0mNXYycFmADIdtdE6BG9MRjP5CGIs8qxC8A==}
peerDependencies:
'@supabase/supabase-js': ^2.43.4
'@supabase/storage-js@2.7.1':
resolution: {integrity: sha512-asYHcyDR1fKqrMpytAS1zjyEfvxuOIp1CIXX7ji4lHHcJKqyk+sLl/Vxgm4sN6u8zvuUtae9e4kDxQP2qrwWBA==}
'@supabase/supabase-js@2.47.3':
resolution: {integrity: sha512-AmwTyHtOXdfjLVKiM+neYItB62T4gAl1jV8ZrIg3yp1Z1NICzYfsujJDSuELkrLkYvU/RGfZXpIBheDTt7fmwA==}
'@swc/counter@0.1.3':
resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
@@ -1890,9 +1850,6 @@ packages:
'@types/cookie@0.4.1':
resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==}
'@types/cookie@0.6.0':
resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}
'@types/cors@2.8.17':
resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==}
@@ -1950,9 +1907,6 @@ packages:
'@types/pg@8.11.6':
resolution: {integrity: sha512-/2WmmBXHLsfRqzfHW7BNZ8SbYzE8OSk7i3WjFYvfgRHj7S1xj+16Je5fUKv3lVdVzk/zn9TXOqf+avFCFIE0yQ==}
'@types/phoenix@1.6.6':
resolution: {integrity: sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A==}
'@types/prop-types@15.7.14':
resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==}
@@ -1979,9 +1933,6 @@ packages:
'@types/unist@2.0.11':
resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==}
'@types/ws@8.5.13':
resolution: {integrity: sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==}
'@typescript-eslint/eslint-plugin@8.18.0':
resolution: {integrity: sha512-NR2yS7qUqCL7AIxdJUQf2MKKNDVNaig/dEB0GBLU7D+ZdHgK1NoH/3wsgO3OnPVipn51tG3MAwaODEGil70WEw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -4871,9 +4822,14 @@ packages:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
stripe@17.5.0:
resolution: {integrity: sha512-kcyeAkDFjGsVl17FqnG7q/+xIjt0ZjOo9Dm+q8deAvs2Xe4iAHrhxyoP4etUVFc+/LZJANjIPVR+ZOnt9hr/Ug==}
stripe@18.1.0:
resolution: {integrity: sha512-MLDiniPTHqcfIT3anyBPmOEcaiDhYa7/jRaNypQ3Rt2SJnayQZBvVbFghIziUCZdltGAndm/ZxVOSw6uuSCDig==}
engines: {node: '>=12.*'}
peerDependencies:
'@types/node': '>=12.x.x'
peerDependenciesMeta:
'@types/node':
optional: true
styled-jsx@5.1.1:
resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==}
@@ -5498,8 +5454,6 @@ snapshots:
'@drizzle-team/brocli@0.10.2': {}
'@edge-runtime/cookies@6.0.0': {}
'@emnapi/runtime@1.3.1':
dependencies:
tslib: 2.8.1
@@ -6424,54 +6378,6 @@ snapshots:
'@socket.io/component-emitter@3.1.2': {}
'@supabase/auth-js@2.66.1':
dependencies:
'@supabase/node-fetch': 2.6.15
'@supabase/functions-js@2.4.3':
dependencies:
'@supabase/node-fetch': 2.6.15
'@supabase/node-fetch@2.6.15':
dependencies:
whatwg-url: 5.0.0
'@supabase/postgrest-js@1.16.3':
dependencies:
'@supabase/node-fetch': 2.6.15
'@supabase/realtime-js@2.11.2(bufferutil@4.0.8)(utf-8-validate@6.0.3)':
dependencies:
'@supabase/node-fetch': 2.6.15
'@types/phoenix': 1.6.6
'@types/ws': 8.5.13
ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@6.0.3)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
'@supabase/ssr@0.5.2(@supabase/supabase-js@2.47.3(bufferutil@4.0.8)(utf-8-validate@6.0.3))':
dependencies:
'@supabase/supabase-js': 2.47.3(bufferutil@4.0.8)(utf-8-validate@6.0.3)
'@types/cookie': 0.6.0
cookie: 0.7.2
'@supabase/storage-js@2.7.1':
dependencies:
'@supabase/node-fetch': 2.6.15
'@supabase/supabase-js@2.47.3(bufferutil@4.0.8)(utf-8-validate@6.0.3)':
dependencies:
'@supabase/auth-js': 2.66.1
'@supabase/functions-js': 2.4.3
'@supabase/node-fetch': 2.6.15
'@supabase/postgrest-js': 1.16.3
'@supabase/realtime-js': 2.11.2(bufferutil@4.0.8)(utf-8-validate@6.0.3)
'@supabase/storage-js': 2.7.1
transitivePeerDependencies:
- bufferutil
- utf-8-validate
'@swc/counter@0.1.3': {}
'@swc/helpers@0.5.13':
@@ -6600,8 +6506,6 @@ snapshots:
'@types/cookie@0.4.1': {}
'@types/cookie@0.6.0': {}
'@types/cors@2.8.17':
dependencies:
'@types/node': 20.17.9
@@ -6670,8 +6574,6 @@ snapshots:
pg-protocol: 1.7.0
pg-types: 4.0.2
'@types/phoenix@1.6.6': {}
'@types/prop-types@15.7.14': {}
'@types/react-beautiful-dnd@13.1.8':
@@ -6702,10 +6604,6 @@ snapshots:
'@types/unist@2.0.11': {}
'@types/ws@8.5.13':
dependencies:
'@types/node': 20.17.9
'@typescript-eslint/eslint-plugin@8.18.0(@typescript-eslint/parser@8.18.0(eslint@9.16.0(jiti@1.21.6))(typescript@5.7.2))(eslint@9.16.0(jiti@1.21.6))(typescript@5.7.2)':
dependencies:
'@eslint-community/regexpp': 4.12.1
@@ -10161,10 +10059,11 @@ snapshots:
strip-json-comments@3.1.1: {}
stripe@17.5.0:
stripe@18.1.0(@types/node@20.17.9):
dependencies:
'@types/node': 20.17.9
qs: 6.13.1
optionalDependencies:
'@types/node': 20.17.9
styled-jsx@5.1.1(react@18.3.1):
dependencies: