mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Set tokens to expire 5 minutes early
Prevents occasional usage of tokens the very second they expire
This commit is contained in:
parent
3ab778b49c
commit
3d91ae0256
2 changed files with 1 additions and 16 deletions
|
|
@ -7,21 +7,6 @@ type
|
|||
displayUrl*: string
|
||||
indices*: array[2, int]
|
||||
|
||||
ErrorCode* = enum
|
||||
null = 0
|
||||
noUserMatches = 17
|
||||
protectedUser = 22
|
||||
couldntAuth = 32
|
||||
doesntExist = 34
|
||||
userNotFound = 50
|
||||
suspended = 63
|
||||
rateLimited = 88
|
||||
invalidToken = 89
|
||||
listIdOrSlug = 112
|
||||
forbidden = 200
|
||||
badToken = 239
|
||||
noCsrf = 353
|
||||
|
||||
ErrorObj* = object
|
||||
code*: Error
|
||||
message*: string
|
||||
|
|
|
|||
Loading…
Reference in a new issue