hotfix: magiclink dynamic email redirection url (#67)

* chore: modified magiclink /signin function to work with origin

* chore: modified testcases for signInMagicLink to reflect new changes

* chore: removed prisma migration file

* chore: removed admin module dulicate from guards folder

* chore: implemented ENUMs for origins in signin method

* chore: added VITE_ADMIN_URL to .env.example file
This commit is contained in:
Balu Babu
2023-04-06 11:41:01 +05:30
committed by GitHub
parent 6d688ed2bc
commit 22aa8ee334
5 changed files with 32 additions and 4 deletions

View File

@@ -11,6 +11,11 @@ enum AuthTokenType {
REFRESH_TOKEN = 'refresh_token',
}
export enum Origin {
ADMIN = 'admin',
APP = 'app',
}
/**
* This function allows throw to be used as an expression
* @param errMessage Message present in the error message