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
|
// Register
|
||||||
const register = async (payload: RegisterPayload) => {
|
const register = async (payload: RegisterPayload) => {
|
||||||
try {
|
try {
|
||||||
const data = await $fetch(`${API_BASE_URL}/auth/register`, {
|
const data = await $fetch(`${API_BASE_URL}/auth/register-learner`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: payload
|
body: payload
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue