From 6a76998c43a6438077283fa9d40634c2f8899256 Mon Sep 17 00:00:00 2001 From: irishcarbomb777 Date: Fri, 17 May 2024 09:48:53 -0400 Subject: [PATCH] fix: Error return --- src/configs/configAuthentication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configs/configAuthentication.ts b/src/configs/configAuthentication.ts index bcb3afc..740baee 100644 --- a/src/configs/configAuthentication.ts +++ b/src/configs/configAuthentication.ts @@ -92,7 +92,7 @@ export const configAuthentication = < await signIn(provider, { ...credentials ?? {} }) return Ok(null) } catch (_e) { - return Err(_e as Error) + return Err(JSON.parse(JSON.stringify(_e))) } }, signOut