mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-22 14:21:55 -05:00
feat(sso): Add logging for when code validation fails in oidc callback (#8693)
This commit is contained in:
@@ -1601,6 +1601,7 @@ async function handleOIDCCallback(
|
||||
? "post"
|
||||
: "basic",
|
||||
}).catch((e) => {
|
||||
ctx.context.logger.error("Error validating authorization code", e);
|
||||
if (e instanceof BetterFetchError) {
|
||||
throw ctx.redirect(
|
||||
`${
|
||||
|
||||
Reference in New Issue
Block a user