이메일 인증과 비밀번호 재설정 추가
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user