Complete backend rework
This commit is contained in:
parent
53d4ab527a
commit
eb09017dab
25 changed files with 958 additions and 866 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue