-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from wtfdivyansh/feature/authentication
update auth to better-auth v1
- Loading branch information
Showing
8 changed files
with
95 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"extends": "@repo/typescript-config/base.json", | ||
"include": ["src", "*.ts"], | ||
"exclude": ["node_modules"] | ||
"exclude": ["node_modules"], | ||
} |
31 changes: 31 additions & 0 deletions
31
packages/database/prisma/migrations/20241126154111_final_auth/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `expiresAt` on the `account` table. All the data in the column will be lost. | ||
- A unique constraint covering the columns `[token]` on the table `session` will be added. If there are existing duplicate values, this will fail. | ||
- Added the required column `createdAt` to the `account` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `updatedAt` to the `account` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `createdAt` to the `session` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `token` to the `session` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `updatedAt` to the `session` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "account" DROP COLUMN "expiresAt", | ||
ADD COLUMN "accessTokenExpiresAt" TIMESTAMP(3), | ||
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL, | ||
ADD COLUMN "refreshTokenExpiresAt" TIMESTAMP(3), | ||
ADD COLUMN "scope" TEXT, | ||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "session" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL, | ||
ADD COLUMN "token" TEXT NOT NULL, | ||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "verification" ADD COLUMN "updatedAt" TIMESTAMP(3), | ||
ALTER COLUMN "createdAt" DROP NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "session_token_key" ON "session"("token"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ | |
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"target": "ES2022" | ||
"target": "ES2022", | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.