chore: main 병합 — 로그인 없이 댓글·좋아요, 구글 로그인만, 동네 이야기·카드뉴스 등 (차단 표 user_block 하나로 합침, 익명 댓글도 신고 가능)
This commit is contained in:
commit
dba34675c8
408 files changed
+36377
-725
No files matched your search
+2
-2
@@ -57,8 +57,8 @@ async function authFetch(input: RequestInfo | URL, init?: RequestInit): Promise<
|
||||
const anonymous = await fetch(withToken(retry, null))
|
||||
if (anonymous.status !== 401) return anonymous
|
||||
}
|
||||
// 로그아웃하다 만료된 거면 로그인 창을 띄우지 않는다
|
||||
if (new URL(request.url).pathname !== '/v1/auth/logout') emitAuthRequired()
|
||||
// 로그인 창은 사람이 한 동작(글쓰기·댓글 등)에만 띄운다. 화면이 알아서 받는 GET(내 정보 등)이나 로그아웃이 만료로 401이면 조용히 로그아웃 상태로 둔다
|
||||
if (request.method !== 'GET' && new URL(request.url).pathname !== '/v1/auth/logout') emitAuthRequired()
|
||||
return response
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user