Skip to content

Commit 010c61b

Browse files
lukas-reinekecgsimmons
authored andcommitted
T-351 added missing token error code (#11)
* T-351 added missing token error code * T-351 added some comments
1 parent 9e2291d commit 010c61b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

index.node.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/codes.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export declare enum codes {
55
TOKEN_EXPIRED = 'TOKEN_EXPIRED',
66
TOKEN_MALFORMED = 'TOKEN_MALFORMED',
77
INVALID_REFRESH_TOKEN = 'INVALID_REFRESH_TOKEN',
8+
TOKEN_MISSING = 'TOKEN_MISSING',
89
ACCESS_DENIED = 'ACCESS_DENIED',
910
INVALID_CREDENTIALS = 'INVALID_CREDENTIALS',
1011
QUERY_DEPTH_EXCEEDED = 'QUERY_DEPTH_EXCEEDED',

src/lib/codes.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export enum codes {
1414
TOKEN_MALFORMED = 'TOKEN_MALFORMED',
1515
// Refresh token is invalid
1616
INVALID_REFRESH_TOKEN = 'INVALID_REFRESH_TOKEN',
17+
// No token provided
18+
TOKEN_MISSING = 'TOKEN_MISSING',
1719

1820
// Permissions Flags
1921
// User has insufficient permissions for the desired action
@@ -39,9 +41,9 @@ export enum codes {
3941
// User input invalid
4042
INPUT_INVALID = 'INPUT_INVALID',
4143

42-
// Mystery Flags
43-
// New phone, who dis?
44+
// Something went wrong
4445
UNKNOWN_ERROR = 'UNKNOWN_ERROR',
4546

47+
// The amount of data requested exceeds the allowable limit.
4648
MAX_PAYLOAD_EXCEEDED = 'MAX_PAYLOAD_EXCEEDED',
4749
}

0 commit comments

Comments
 (0)