diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-02 18:15:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-02 18:15:41 +0200 |
commit | e030bfb59dd5ee65f20a64686ec9b22ca39f70ae (patch) | |
tree | c9a439159ef540291e3c030bcaf958b953442147 /shared/models/server/server-error-code.enum.ts | |
parent | 463206948d6a9d46e7e68d55c7b763e601ecc870 (diff) | |
download | PeerTube-e030bfb59dd5ee65f20a64686ec9b22ca39f70ae.tar.gz PeerTube-e030bfb59dd5ee65f20a64686ec9b22ca39f70ae.tar.zst PeerTube-e030bfb59dd5ee65f20a64686ec9b22ca39f70ae.zip |
Refactor server errors handler
Diffstat (limited to 'shared/models/server/server-error-code.enum.ts')
-rw-r--r-- | shared/models/server/server-error-code.enum.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/shared/models/server/server-error-code.enum.ts b/shared/models/server/server-error-code.enum.ts index 93b9ce20d..43996e7aa 100644 --- a/shared/models/server/server-error-code.enum.ts +++ b/shared/models/server/server-error-code.enum.ts | |||
@@ -48,5 +48,13 @@ export const enum OAuth2ErrorCode { | |||
48 | * | 48 | * |
49 | * @see https://github.com/oauthjs/node-oauth2-server/blob/master/lib/errors/invalid-client-error.js | 49 | * @see https://github.com/oauthjs/node-oauth2-server/blob/master/lib/errors/invalid-client-error.js |
50 | */ | 50 | */ |
51 | INVALID_CLIENT = 'invalid_client' | 51 | INVALID_CLIENT = 'invalid_client', |
52 | |||
53 | |||
54 | /** | ||
55 | * The access token provided is expired, revoked, malformed, or invalid for other reasons | ||
56 | * | ||
57 | * @see https://github.com/oauthjs/node-oauth2-server/blob/master/lib/errors/invalid-token-error.js | ||
58 | */ | ||
59 | INVALID_TOKEN = 'invalid_token', | ||
52 | } | 60 | } |