Untitled
unknown
typescript
3 years ago
260 B
14
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...