diff --git a/lib/auth.ts b/lib/auth.ts index 0e89469..c8734c3 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -587,7 +587,7 @@ export const registerUser = async ({ inviteCode?: string; }): Promise => { try { - const response = await fetch(`${JAVA_BASE_URL}/api/user/register`, { + const response = await fetch(`${BASE_URL}/api/user/register`, { method: 'POST', headers: { 'Accept': 'application/json', @@ -627,7 +627,7 @@ export const registerUserWithInvite = async ({ invite_code?: string; }): Promise => { try { - const response = await fetch(`${JAVA_BASE_URL}/api/user_fission/register_with_invite`, { + const response = await fetch(`${BASE_URL}/api/user_fission/register_with_invite`, { method: 'POST', headers: { 'Accept': 'application/json', @@ -659,7 +659,7 @@ export const registerUserWithInvite = async ({ */ export const sendVerificationLink = async (email: string) => { try { - const response = await fetch(`${JAVA_BASE_URL}/api/user/sendVerificationLink?email=${email}`); + const response = await fetch(`${BASE_URL}/api/user/sendVerificationLink?email=${email}`); const data = await response.json(); if(!data.success){ throw new Error(data.message||data.msg)