mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
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:
parent
c96edb31a5
commit
c2d759da53
2 changed files with 17 additions and 2 deletions
|
@ -19,3 +19,7 @@ export class PermissionError extends Error {
|
|||
export class TokenNotValidError extends Error {
|
||||
name = 'TokenNotValidError';
|
||||
}
|
||||
|
||||
export class TooManyTokensError extends Error {
|
||||
name = 'TooManyTokensError';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue