Skip to content

Commit

Permalink
fix: modify sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
irishcarbomb777 committed May 20, 2024
1 parent ec7b20d commit 266739e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/configAuthentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export const configAuthentication = <
) as unknown as Promise<U | null>,
signIn: async (provider: Parameters<typeof signIn>[0], credentials?: C) => {
try {
await signIn(provider, { ...credentials ?? {} })
return Ok(null)
return await signIn(provider, { ...credentials ?? {} })
} catch (_e) {
const e = _e as CredentialsSignin
console.log(e)
return Err(JSON.parse(JSON.stringify(e)) as CredentialsSignin)
}
},
Expand Down

0 comments on commit 266739e

Please sign in to comment.