mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-27 06:21:18 -07:00
Enhancement: allow OIDC auto-login (#7096)
This commit is contained in:
@@ -32,6 +32,7 @@ describe("components/toggles/signout", () => {
|
||||
const { getByRole } = render(<SignOut />);
|
||||
fireEvent.click(getByRole("button"));
|
||||
|
||||
expect(signOut).toHaveBeenCalledWith({ callbackUrl: "/" });
|
||||
// Not "/", which would bounce straight back into the provider when auto-login is on
|
||||
expect(signOut).toHaveBeenCalledWith({ callbackUrl: "/auth/signin?autologin=0" });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user