Skip to content

Commit 2c1fb67

Browse files
feat(blog): update supabase-twilio-otp-authentication-in-react (#7351)
Co-authored-by: Özgür Akça <doguhanozgurakca@gmail.com>
1 parent 4bdb104 commit 2c1fb67

103 files changed

Lines changed: 10838 additions & 714 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

documentation/blog/2022-09-22-refine-supabase-auth.md

Lines changed: 649 additions & 376 deletions
Large diffs are not rendered by default.

examples/blog-refine-supabase-auth/package.json

Lines changed: 74 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"build": "tsc && refine build",
88
"dev": "refine dev",
99
"refine": "refine",
10-
"start": "refine start",
11-
"test": "jest"
10+
"start": "refine start"
1211
},
1312
"browserslist": {
1413
"production": [
@@ -23,32 +22,85 @@
2322
]
2423
},
2524
"dependencies": {
26-
"@refinedev/cli": "^2.16.40",
27-
"@refinedev/core": "^4.56.0",
28-
"@refinedev/react-router": "^0.1.0",
29-
"@refinedev/supabase": "^5.9.4",
30-
"daisyui": "^3.5.1",
31-
"react": "^19.1.0",
32-
"react-daisyui": "^4.1.0",
33-
"react-dom": "^19.1.0",
25+
"@hookform/resolvers": "^5.0.1",
26+
"@radix-ui/react-accordion": "^1.2.8",
27+
"@radix-ui/react-alert-dialog": "^1.1.11",
28+
"@radix-ui/react-aspect-ratio": "^1.1.4",
29+
"@radix-ui/react-avatar": "^1.1.7",
30+
"@radix-ui/react-checkbox": "^1.2.3",
31+
"@radix-ui/react-collapsible": "^1.1.8",
32+
"@radix-ui/react-context-menu": "^2.2.12",
33+
"@radix-ui/react-dialog": "^1.1.11",
34+
"@radix-ui/react-dropdown-menu": "^2.1.12",
35+
"@radix-ui/react-hover-card": "^1.1.11",
36+
"@radix-ui/react-label": "^2.1.4",
37+
"@radix-ui/react-menubar": "^1.1.12",
38+
"@radix-ui/react-navigation-menu": "^1.2.10",
39+
"@radix-ui/react-popover": "^1.1.11",
40+
"@radix-ui/react-progress": "^1.1.4",
41+
"@radix-ui/react-radio-group": "^1.3.4",
42+
"@radix-ui/react-scroll-area": "^1.2.6",
43+
"@radix-ui/react-select": "^2.2.2",
44+
"@radix-ui/react-separator": "^1.1.4",
45+
"@radix-ui/react-slider": "^1.3.2",
46+
"@radix-ui/react-slot": "^1.2.0",
47+
"@radix-ui/react-switch": "^1.2.2",
48+
"@radix-ui/react-tabs": "^1.1.9",
49+
"@radix-ui/react-toggle": "^1.1.6",
50+
"@radix-ui/react-toggle-group": "^1.1.7",
51+
"@radix-ui/react-tooltip": "^1.2.4",
52+
"@refinedev/cli": "^2.16.48",
53+
"@refinedev/core": "^5.0.8",
54+
"@refinedev/devtools": "^2.0.1",
55+
"@refinedev/kbar": "^2.0.0",
56+
"@refinedev/react-hook-form": "^5.0.0",
57+
"@refinedev/react-router": "^2.0.0",
58+
"@refinedev/react-table": "^6.0.0",
59+
"@refinedev/simple-rest": "^6.0.0",
60+
"@refinedev/supabase": "^6.0.0",
61+
"@tailwindcss/vite": "^4.1.8",
62+
"@tanstack/react-table": "^8.2.6",
63+
"class-variance-authority": "^0.7.1",
64+
"clsx": "^2.1.1",
65+
"cmdk": "^1.1.1",
66+
"date-fns": "^4.1.0",
67+
"dayjs": "^1.10.7",
68+
"embla-carousel-react": "^8.6.0",
69+
"input-otp": "^1.4.2",
70+
"lucide-react": "^0.487.0",
71+
"next-themes": "^0.4.6",
72+
"postcss": "^8.5.3",
73+
"react": "19.1.0",
74+
"react-day-picker": "8.10.1",
75+
"react-dom": "19.1.0",
76+
"react-hook-form": "^7.57.0",
77+
"react-resizable-panels": "^2.1.8",
3478
"react-router": "^7.0.2",
35-
"tailwindcss": "^3.0.11",
36-
"web-vitals": "^1.1.1"
79+
"recharts": "^2.15.3",
80+
"shadcn": "^2.4.1",
81+
"sonner": "^2.0.3",
82+
"tailwind-merge": "^3.2.0",
83+
"tw-animate-css": "^1.2.5",
84+
"vaul": "^1.1.2",
85+
"zod": "^3.24.3"
3786
},
3887
"devDependencies": {
39-
"@testing-library/jest-dom": "^6.6.3",
40-
"@testing-library/react": "^16.3.0",
41-
"@testing-library/user-event": "^14.6.1",
42-
"@types/jest": "^29.2.4",
88+
"@eslint/js": "^9.25.0",
89+
"@tailwindcss/postcss": "^4.1.4",
4390
"@types/node": "^20",
4491
"@types/react": "^19.1.0",
4592
"@types/react-dom": "^19.1.0",
46-
"@vitejs/plugin-react": "^4.2.1",
47-
"prettier-plugin-tailwindcss": "^0.1.4",
93+
"@typescript-eslint/eslint-plugin": "^5.57.1",
94+
"@typescript-eslint/parser": "^5.57.1",
95+
"@vitejs/plugin-react": "^4.4.1",
96+
"eslint": "^9.25.0",
97+
"eslint-plugin-react-hooks": "^5.2.0",
98+
"eslint-plugin-react-refresh": "^0.4.19",
99+
"globals": "^16.0.0",
100+
"tailwindcss": "^4.1.4",
48101
"typescript": "^5.8.3",
49-
"vite": "^5.4.15"
102+
"typescript-eslint": "^8.30.1",
103+
"vite": "^6.3.5"
50104
},
51-
"engines": {
52-
"node": ">=20"
53-
}
105+
"refine": {}
54106
}
Lines changed: 131 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,131 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
2+
@import "tw-animate-css";
3+
4+
@custom-variant dark (&:is(.dark *));
5+
6+
@theme inline {
7+
--color-background: var(--background);
8+
--color-foreground: var(--foreground);
9+
--font-sans: var(--font-geist-sans);
10+
--font-mono: var(--font-geist-mono);
11+
--color-sidebar-ring: var(--sidebar-ring);
12+
--color-sidebar-border: var(--sidebar-border);
13+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
14+
--color-sidebar-accent: var(--sidebar-accent);
15+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
16+
--color-sidebar-primary: var(--sidebar-primary);
17+
--color-sidebar-foreground: var(--sidebar-foreground);
18+
--color-sidebar: var(--sidebar);
19+
--color-chart-5: var(--chart-5);
20+
--color-chart-4: var(--chart-4);
21+
--color-chart-3: var(--chart-3);
22+
--color-chart-2: var(--chart-2);
23+
--color-chart-1: var(--chart-1);
24+
--color-ring: var(--ring);
25+
--color-input: var(--input);
26+
--color-border: var(--border);
27+
--color-destructive: var(--destructive);
28+
--color-accent-foreground: var(--accent-foreground);
29+
--color-accent: var(--accent);
30+
--color-muted-foreground: var(--muted-foreground);
31+
--color-muted: var(--muted);
32+
--color-secondary-foreground: var(--secondary-foreground);
33+
--color-secondary: var(--secondary);
34+
--color-primary-foreground: var(--primary-foreground);
35+
--color-primary: var(--primary);
36+
--color-popover-foreground: var(--popover-foreground);
37+
--color-popover: var(--popover);
38+
--color-card-foreground: var(--card-foreground);
39+
--color-card: var(--card);
40+
--radius-sm: calc(var(--radius) - 4px);
41+
--radius-md: calc(var(--radius) - 2px);
42+
--radius-lg: var(--radius);
43+
--radius-xl: calc(var(--radius) + 4px);
44+
45+
--font-sans: "Inter", sans-serif;
46+
}
47+
48+
:root {
49+
--radius: 0.325rem;
50+
color-scheme: light;
51+
--background: oklch(1 0 0);
52+
--foreground: oklch(0.141 0.005 285.823);
53+
--card: oklch(1 0 0);
54+
--card-foreground: oklch(0.141 0.005 285.823);
55+
--popover: oklch(1 0 0);
56+
--popover-foreground: oklch(0.141 0.005 285.823);
57+
--primary: oklch(0.21 0.006 285.885);
58+
--primary-foreground: oklch(0.985 0 0);
59+
--secondary: oklch(0.967 0.001 286.375);
60+
--secondary-foreground: oklch(0.21 0.006 285.885);
61+
--muted: oklch(0.967 0.001 286.375);
62+
--muted-foreground: oklch(0.552 0.016 285.938);
63+
--accent: oklch(0.967 0.001 286.375);
64+
--accent-foreground: oklch(0.21 0.006 285.885);
65+
--destructive: oklch(0.577 0.245 27.325);
66+
--border: oklch(0.92 0.004 286.32);
67+
--input: oklch(0.92 0.004 286.32);
68+
--ring: oklch(0.705 0.015 286.067);
69+
--chart-1: oklch(0.646 0.222 41.116);
70+
--chart-2: oklch(0.6 0.118 184.704);
71+
--chart-3: oklch(0.398 0.07 227.392);
72+
--chart-4: oklch(0.828 0.189 84.429);
73+
--chart-5: oklch(0.769 0.188 70.08);
74+
--sidebar: oklch(0.985 0 0);
75+
--sidebar-foreground: oklch(0.141 0.005 285.823);
76+
--sidebar-primary: oklch(0.21 0.006 285.885);
77+
--sidebar-primary-foreground: oklch(0.985 0 0);
78+
--sidebar-accent: oklch(0.967 0.001 286.375);
79+
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
80+
--sidebar-border: oklch(0.92 0.004 286.32);
81+
--sidebar-ring: oklch(0.705 0.015 286.067);
82+
}
83+
84+
.dark {
85+
color-scheme: dark;
86+
--background: oklch(0.141 0.005 285.823);
87+
--foreground: oklch(0.985 0 0);
88+
--card: oklch(0.21 0.006 285.885);
89+
--card-foreground: oklch(0.985 0 0);
90+
--popover: oklch(0.21 0.006 285.885);
91+
--popover-foreground: oklch(0.985 0 0);
92+
--primary: oklch(0.92 0.004 286.32);
93+
--primary-foreground: oklch(0.21 0.006 285.885);
94+
--secondary: oklch(0.274 0.006 286.033);
95+
--secondary-foreground: oklch(0.985 0 0);
96+
--muted: oklch(0.274 0.006 286.033);
97+
--muted-foreground: oklch(0.705 0.015 286.067);
98+
--accent: oklch(0.274 0.006 286.033);
99+
--accent-foreground: oklch(0.985 0 0);
100+
--destructive: oklch(0.704 0.191 22.216);
101+
--border: oklch(1 0 0 / 10%);
102+
--input: oklch(1 0 0 / 15%);
103+
--ring: oklch(0.552 0.016 285.938);
104+
--chart-1: oklch(0.488 0.243 264.376);
105+
--chart-2: oklch(0.696 0.17 162.48);
106+
--chart-3: oklch(0.769 0.188 70.08);
107+
--chart-4: oklch(0.627 0.265 303.9);
108+
--chart-5: oklch(0.645 0.246 16.439);
109+
--sidebar: oklch(0.21 0.006 285.885);
110+
--sidebar-foreground: oklch(0.985 0 0);
111+
--sidebar-primary: oklch(0.92 0.004 286.32);
112+
--sidebar-primary-foreground: oklch(0.985 0 0);
113+
--sidebar-accent: oklch(0.274 0.006 286.033);
114+
--sidebar-accent-foreground: oklch(0.985 0 0);
115+
--sidebar-border: oklch(1 0 0 / 10%);
116+
--sidebar-ring: oklch(0.552 0.016 285.938);
117+
}
118+
119+
@layer base {
120+
* {
121+
@apply border-border outline-ring/50 antialiased;
122+
font-family: var(--font-sans);
123+
}
124+
body {
125+
@apply min-h-screen bg-background text-foreground;
126+
}
127+
128+
#root {
129+
@apply min-h-screen;
130+
}
131+
}

0 commit comments

Comments
 (0)