Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(admin): preserve registered custom OAuth callbacks

Tinededc72109fe
diff --git a/apps/api/src/auth.ts b/apps/api/src/auth.ts
index 9d1b4a70e..7fc9e8049 100644
--- a/apps/api/src/auth.ts
+++ b/apps/api/src/auth.ts
@@ -994,15 +994,6 @@ export const auth = betterAuth({
}
}
- if (
- ctx.path === "/callback/:id" &&
- ctx.params?.id === "custom" &&
- (parseManagedProfileFields().length > 0 ||
- resolveBackchannelLogoutConfig().enabled)
- ) {
- throw new APIError("NOT_FOUND");
- }
-
const isSignUpPath =
ctx.path === "/sign-up/email" ||
ctx.path.startsWith("/callback/") ||