Skip to content

Commit

Permalink
fix: throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
irishcarbomb777 committed May 20, 2024
1 parent 64e5884 commit 1b82e53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/configs/configAuthentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ export const configAuthentication = <
try {
return await signIn(provider, { ...credentials ?? {} })
} catch (_e) {
const e = _e as CredentialsSignin
console.log(e)
return Err(JSON.parse(JSON.stringify(e)) as CredentialsSignin)
throw _e
// const e = _e as CredentialsSignin
// console.log(e)
// return Err(JSON.parse(JSON.stringify(e)) as CredentialsSignin)
}
},
signOut
Expand Down

0 comments on commit 1b82e53

Please sign in to comment.