Complete backend rework

This commit is contained in:
aronmal 2023-04-08 16:56:03 +02:00
parent 53d4ab527a
commit eb09017dab
Signed by: aronmal
GPG key ID: 816B7707426FC612
25 changed files with 958 additions and 866 deletions

View file

@ -1,9 +1,6 @@
import { Token } from "@prisma/client"
import { TokenType } from "@prisma/client"
export default async function jwtVerifyCatch(
tokenType: Token["type"],
err: Error
) {
export default async function jwtVerifyCatch(tokenType: TokenType, err: Error) {
switch (err.message) {
case "jwt expired":
return {