feat: refactoring auth & add email password login (#318)

* feat: wip

* fix: issues

* feat: clean controllers and services

* fix: test

* Fix auth

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Jérémy M
2023-06-17 13:42:02 +02:00
committed by GitHub
parent d13ceb98fa
commit 299ca293a8
215 changed files with 1668 additions and 680 deletions

View File

@ -0,0 +1,11 @@
/*
Warnings:
- You are about to drop the column `refreshToken` on the `refresh_tokens` table. All the data in the column will be lost.
- Added the required column `expiresAt` to the `refresh_tokens` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "refresh_tokens" DROP COLUMN "refreshToken",
ADD COLUMN "expiresAt" TIMESTAMP(3) NOT NULL,
ADD COLUMN "isRevoked" BOOLEAN NOT NULL DEFAULT false;