v0.1.45 - 로그아웃 API와 세션 상태 안내 추가

This commit is contained in:
2026-04-24 10:39:42 +09:00
parent 684413a098
commit 6d4f2228cc
9 changed files with 127 additions and 9 deletions

View File

@@ -92,6 +92,13 @@ export async function fetchCurrentUser(token) {
})
}
export async function logout(token) {
return request('/api/auth/logout', {
method: 'POST',
token,
})
}
export async function updateProfile(token, { email, nickname }) {
return request('/api/auth/profile', {
method: 'PUT',