File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments