replace auth with rate limiter
This commit is contained in:
parent
1434756b10
commit
3721ea7a6a
7 changed files with 49 additions and 109 deletions
9
src/types.d.ts
vendored
9
src/types.d.ts
vendored
|
|
@ -1,12 +1,3 @@
|
|||
export interface AuthPayload {
|
||||
// An UUID string, unique per request.
|
||||
token: string;
|
||||
|
||||
// Unix time in seconds. It is the time when the token was issued.
|
||||
// Will expire after a time window.
|
||||
issuedAt: number;
|
||||
}
|
||||
|
||||
export interface Quote {
|
||||
id: number;
|
||||
text: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue