이메일 인증과 비밀번호 재설정 추가

This commit is contained in:
2026-06-25 12:02:44 +09:00
parent edf48e53a5
commit 35a2976182
26 changed files with 770 additions and 43 deletions

View File

@@ -147,6 +147,34 @@ const UaDeckApi = (() => {
register: (body) =>
request('/auth/register', { method: 'POST', body: JSON.stringify(body) }),
/** @param {string} email */
resendVerification: (email) =>
request('/auth/resend-verification', {
method: 'POST',
body: JSON.stringify({ email }),
}),
/** @param {string} token */
verifyEmail: (token) =>
request('/auth/verify-email', {
method: 'POST',
body: JSON.stringify({ token }),
}),
/** @param {string} email */
forgotPassword: (email) =>
request('/auth/forgot-password', {
method: 'POST',
body: JSON.stringify({ email }),
}),
/** @param {string} token @param {string} newPassword */
resetPassword: (token, newPassword) =>
request('/auth/reset-password', {
method: 'POST',
body: JSON.stringify({ token, newPassword }),
}),
getMe: () => request('/auth/me'),
/** @param {object} body */