Skip to content

Commit

Permalink
Merge pull request #56 from wtfdivyansh/feature/backend
Browse files Browse the repository at this point in the history
fix socal signin
  • Loading branch information
SkidGod4444 authored Nov 17, 2024
2 parents 0b93d50 + effbb4d commit 57a640a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/app/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const baseDomain =
: "http://localhost:3001";
const redirectUrl =
process.env.NODE_ENV === "production"
? "https://ww.plura.pro/auth"
? "https://www.plura.pro/auth"
: "http://localhost:3003/auth";
export default async function authMiddleware(request: NextRequest) {
const { data: session } = await betterFetch<Session>(
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@repo/typescript-config": "workspace:*",
"@repo/db": "workspace:*",
"better-auth": "0.8.6-beta.3",
"better-auth": "0.8.6-beta.4",
"better-call": "0.2.14-beta.3",
"oslo": "^1.2.1"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Warnings:
- Added the required column `createdAt` to the `verification` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "verification" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL;

-- CreateTable
CREATE TABLE "Trigger" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"email" TEXT NOT NULL,
"emailVerified" BOOLEAN NOT NULL,

CONSTRAINT "Trigger_pkey" PRIMARY KEY ("id")
);
1 change: 1 addition & 0 deletions packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ model Verification {
identifier String
value String
expiresAt DateTime
createdAt DateTime
@@map("verification")
}
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 57a640a

Please sign in to comment.