feat: swap out drizzle for supabase in label, list and workspace routers

This commit is contained in:
Henry
2024-04-15 20:29:01 +01:00
parent 1712a1a41b
commit b695f7bdf3
10 changed files with 257 additions and 176 deletions

View File

@@ -1,5 +1,4 @@
import { z } from "zod";
import { generateUID } from "~/utils/generateUID";
import {
createTRPCRouter,
@@ -10,7 +9,7 @@ export const authRouter = createTRPCRouter({
login: publicProcedure
.input(z.object({ email: z.string() }))
.mutation(async ({ ctx, input }) => {
const { data, error } = await ctx.supabase.auth.signInWithOtp({
const { data } = await ctx.supabase.auth.signInWithOtp({
email: input.email,
options: {
emailRedirectTo: '/boards',