diff --git a/packages/better-auth/src/plugins/oauth-proxy/index.ts b/packages/better-auth/src/plugins/oauth-proxy/index.ts index a69111430d..b28d1a074c 100644 --- a/packages/better-auth/src/plugins/oauth-proxy/index.ts +++ b/packages/better-auth/src/plugins/oauth-proxy/index.ts @@ -156,7 +156,7 @@ export const oAuthProxy = (opts?: OAuthProxyOptions | undefined) => { `${errorURL}?error=OAuthProxy - Invalid payload structure`, ); } - + const now = Date.now(); const age = (now - payload.timestamp) / 1000; diff --git a/packages/better-auth/src/plugins/oauth-proxy/utils.ts b/packages/better-auth/src/plugins/oauth-proxy/utils.ts index 5850967e61..d45b3ef45c 100644 --- a/packages/better-auth/src/plugins/oauth-proxy/utils.ts +++ b/packages/better-auth/src/plugins/oauth-proxy/utils.ts @@ -50,7 +50,6 @@ export function checkSkipProxy( return false; } - const currentURL = ctx.request?.url || getVendorBaseURL(); if (!currentURL) { return false;