feat: tambah dependensi 'jose' versi 5.9.2 pada package.json

refactor: rapikan identasi dan buat field 'expires' opsional di model UserSession pada schema prisma

chore: bersihkan import tidak terpakai di route login dan register API
This commit is contained in:
2024-09-18 14:39:39 +08:00
parent 2ccbca6566
commit 6ee43ed20f
83 changed files with 794 additions and 273 deletions

15
src/app/lib/server_env.ts Normal file
View File

@@ -0,0 +1,15 @@
type ENV = {
DATABASE_URL: string;
WIBU_PWD: string;
Client_KEY: string;
Server_KEY: string;
MAPBOX_TOKEN: string;
WS_APIKEY: string;
};
export class ServerEnv {
static value: ENV | null = null;
static set(val: ENV) {
ServerEnv.value = val;
}
}