Skip to content

Commit dbc5b9d

Browse files
committed
변경된 응답 형식 적용
1 parent 5d1de93 commit dbc5b9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/fetcher/src/response-handler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ export async function handle401Error<SuccessBody, FailureBody>(
5959
interface ErrorResponse401 {
6060
status: number
6161
code: string
62-
name: string
62+
sentryId: string
6363
}
6464

6565
export function handleGql401Error(error: GraphQLError) {
66-
if (error.extensions?.originalError) {
67-
const originalError = error.extensions.originalError as ErrorResponse401
68-
if (originalError.status === 401) {
66+
if (error.extensions) {
67+
const extensions = error.extensions as unknown as ErrorResponse401
68+
if (extensions.status === 401) {
6969
return NEED_LOGIN_IDENTIFIER
7070
}
7171
}

0 commit comments

Comments
 (0)