feat: migrate auth from supabase to better auth (#596)

* feat: add README for @cio/db package and remove existingAccounts.json

* load session, load profile and organization, add create profile hook

* chore: cache session request

The trick was passing all the cookies to the backend. Previously I was only passing the better-auth.session_token and not better-auth.session_data. Read about the difference here https://www.better-auth.com/docs/concepts/cookies#custom-cookies

* feat: login, logout, onboarding, verify email, reset password.

* feat: complete change email and email verification

* feat: standardise how we make rpc calls and create org endpoints

* fix ui errors

* fix: handle potential undefined customerId and standardize avatar URL property

* refactor: standardize custom domain handling and update telegram chat ID references

* chore: add tailwind prefix to @cio/ui

this fixed the media query issues because  @cio/ui classes were overriding this dashboard tailwind build

* chore: clean up org sidebar

* chore: persist mode state

* feat: implement order breadcrumbs

* chore: upgrade to better auth 1.4

* chore: address common auth flow bugs and setup app for others to setup locally.
This commit is contained in:
Rotimi Best
2025-11-24 01:00:50 +01:00
committed by GitHub
parent 24741644d6
commit a3924100dd
567 changed files with 22364 additions and 13437 deletions
+6 -5
View File
@@ -21,8 +21,9 @@
"dependencies": {
"@carbon/charts-svelte": "^1.13.6",
"@cio/api": "workspace:*",
"@cio/db": "workspace:*",
"@cio/ui": "workspace:*",
"@lemonsqueezy/lemonsqueezy.js": "^2.2.0",
"@cio/utils": "workspace:*",
"@lucide/svelte": "^0.545.0",
"@polar-sh/sveltekit": "^0.2.1",
"@supabase/supabase-js": "^2.31.0",
@@ -35,6 +36,7 @@
"@types/pluralize": "0.0.30",
"ai": "^2.1.31",
"axios": "^1.8.4",
"better-auth": "^1.3.34",
"bits-ui": "^2.14.1",
"body-parser": "^1.20.2",
"bufferutil": "^4.0.9",
@@ -59,7 +61,6 @@
"papaparse": "^5.4.1",
"pluralize": "^8.0.0",
"posthog-js": "^1.180.1",
"@cio/utils": "workspace:*",
"sirv": "^2.0.3",
"stripe": "^14.22.0",
"svelte-awesome-color-picker": "^3.1.4",
@@ -69,7 +70,7 @@
"unsplash-js": "^7.0.18",
"utf-8-validate": "^6.0.5",
"wait-on": "^7.0.1",
"zod": "^3.21.4"
"zod": "^4.1.8"
},
"devDependencies": {
"@babel/core": "^7.22.9",
@@ -78,13 +79,14 @@
"@babel/preset-env": "^7.22.9",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.22.6",
"@cio/tsconfig": "workspace:*",
"@eslint/compat": "^1.4.0",
"@eslint/js": "^9.36.0",
"@rollup/plugin-replace": "^6.0.2",
"@sveltejs/kit": "^2.5.27",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/postcss": "^4.1.14",
"@tailwindcss/typography": "^0.5.9",
"@tailwindcss/vite": "^4.1.16",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/svelte": "^4.0.5",
"@types/jest": "^29.5.10",
@@ -112,7 +114,6 @@
"tailwindcss": "^4.1.14",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"@cio/tsconfig": "workspace:*",
"tslib": "^2.6.1",
"typescript": "^5.5.0",
"typescript-eslint": "^8.44.1",