mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-26 14:56:39 +00:00
added utils for unauth, verify, and response
This commit is contained in:
6
server/auth/unauthorizedResponse.ts
Normal file
6
server/auth/unauthorizedResponse.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import HttpCode from "@server/types/HttpCode";
|
||||
import createHttpError from "http-errors";
|
||||
|
||||
export function unauthorized(msg?: string) {
|
||||
return createHttpError(HttpCode.UNAUTHORIZED, msg || "Unauthorized");
|
||||
}
|
||||
Reference in New Issue
Block a user