Untitled
unknown
typescript
2 years ago
260 B
7
Indexable
type ErrorResponse = {
code: string;
message: string;
payload?: { [key: string]: any };
};
const AuthError: ErrorResponse = {
code: 'AUTHORIZATION_FAILED',
message: 'Authorization failed. Most probably you have passed an invalid token.'
};Editor is loading...