feat: Introduce useAuth composable for user authentication, registration, profile, and password management.

This commit is contained in:
supalerk-ar66 2026-01-22 10:33:05 +07:00
parent bb79e6aedc
commit 3c9703ebfa

View file

@ -101,7 +101,7 @@ export const useAuth = () => {
// Register
const register = async (payload: RegisterPayload) => {
try {
const data = await $fetch(`${API_BASE_URL}/auth/register`, {
const data = await $fetch(`${API_BASE_URL}/auth/register-learner`, {
method: 'POST',
body: payload
})