redirect to org login via query param

This commit is contained in:
miloschwartz
2025-10-26 17:08:35 -07:00
parent 44316731c0
commit cbf9c5361e
3 changed files with 33 additions and 6 deletions

View File

@@ -91,10 +91,10 @@ export default function OrgPolicyResult({
? async () => {
try {
await api.post("/auth/logout", undefined);
router.push("/auth/login");
router.push(`/auth/login?orgId=${orgId}`);
} catch (error) {
console.error("Error during logout:", error);
router.push("/auth/login");
router.push(`/auth/login?orgId=${orgId}`);
}
}
: undefined,