feat: Introduce useAuth composable for user authentication, registration, profile, and password management.
This commit is contained in:
parent
bb79e6aedc
commit
3c9703ebfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue