diff --git a/src/lib/api/auth.ts b/src/lib/api/auth.ts index 55f1c7e6..ea48864f 100644 --- a/src/lib/api/auth.ts +++ b/src/lib/api/auth.ts @@ -137,6 +137,17 @@ export interface RefreshResult { accessToken: string; } export type RefreshResponse = SuccessResponse; +export type RefreshError = + | NotExistMemberLoginError + | InvalidRefreshTokenRefreshError; +export type NotExistMemberRefreshError = ErrorResponse & { + code: 'NOT_EXIST_MEMBER'; + statusCode: 404; +}; +export type InvalidRefreshTokenRefreshError = ErrorResponse & { + code: 'INVALID_REFRESH_TOKEN'; + statusCode: 401; +}; /* ================================ [사용자 엔티티] ====================================== */