feat: add authentication

This commit is contained in:
2023-08-04 22:35:25 +02:00
parent f9638c35fc
commit 469db6525d
33 changed files with 492 additions and 100 deletions

View File

@@ -22,4 +22,11 @@ class BadRequestError extends DomainError {
}
}
export { BadRequestError, DomainError, NotFoundError };
class AccessDeniedError extends DomainError {
status = 403;
constructor(public statusText = "Access Denied") {
super();
}
}
export { AccessDeniedError, BadRequestError, DomainError, NotFoundError };