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 committed by David Mehren
parent 39d9fb5dec
commit af993407b3
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
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';
}