auth: Add token limit of 200

This is a very high ceiling unlikely to hinder legitimate usage, but should prevent possible attack vectors

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-01-25 12:05:25 +01:00
parent c96edb31a5
commit c2d759da53
2 changed files with 17 additions and 2 deletions

View file

@ -19,3 +19,7 @@ export class PermissionError extends Error {
export class TokenNotValidError extends Error {
name = 'TokenNotValidError';
}
export class TooManyTokensError extends Error {
name = 'TooManyTokensError';
}