Skip to content

Commit 5d39a6d

Browse files
Refactor API routes to src directory and fix authId type
Moved all API route files from app/api to src/app/api
1 parent d48ca02 commit 5d39a6d

File tree

38 files changed

+1
-1
lines changed

38 files changed

+1
-1
lines changed

auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
3232
if (!existingUser) {
3333
const newUser = await prisma.user.create({
3434
data: {
35-
authId: user.id,
35+
authId: String(user.id),
3636
email: user.email,
3737
firstName: user.name?.split(' ')[0] || '',
3838
lastName: user.name?.split(' ').slice(1).join(' ') || '',
File renamed without changes.

0 commit comments

Comments
 (0)