Skip to content

Commit 6f5ba00

Browse files
committed
small fix
1 parent 84f1b14 commit 6f5ba00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/src/APIClients/authAPIClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export const register = async ({
274274
}
275275
};
276276

277-
const resetPassword = async (email: string): Promise<{ success: boolean; error?: string }> => {
277+
export const resetPassword = async (email: string): Promise<{ success: boolean; error?: string }> => {
278278
try {
279279
if (!validateEmail(email)) {
280280
return { success: false, error: 'Please enter a valid email address' };
@@ -287,7 +287,7 @@ const resetPassword = async (email: string): Promise<{ success: boolean; error?:
287287
}
288288
};
289289

290-
const verifyEmail = async (email: string): Promise<boolean> => {
290+
export const verifyEmail = async (email: string): Promise<boolean> => {
291291
try {
292292
await baseAPIClient.post(`/auth/verify/${email}`, {}, { withCredentials: true });
293293
return true;
@@ -307,7 +307,7 @@ const verifyEmail = async (email: string): Promise<boolean> => {
307307
}
308308
};
309309

310-
const verifyEmailWithCode = async (
310+
export const verifyEmailWithCode = async (
311311
oobCode: string,
312312
): Promise<{ success: boolean; error?: string }> => {
313313
try {
@@ -367,7 +367,7 @@ const verifyEmailWithCode = async (
367367
}
368368
};
369369

370-
const refresh = async (): Promise<boolean> => {
370+
export const refresh = async (): Promise<boolean> => {
371371
try {
372372
const refreshToken = getLocalStorageObjProperty(AUTHENTICATED_USER_KEY, 'refreshToken');
373373

0 commit comments

Comments
 (0)