Untitled

mail@pastecode.io avatar
unknown
typescript
6 months ago
260 B
2
Indexable
Never
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.'
};