Skip to content

Commit 9697ce1

Browse files
committed
fix: LogoutLink redirectUrl
1 parent d7d1e12 commit 9697ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/LogoutLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function LogoutLink({ children, ...props }: LogoutLinkProps) {
77

88
const logout = useCallback(async () => {
99
auth.logout({
10-
redirectUrl: props.redirectUrl || window.location.origin,
10+
redirectUrl: props.redirectUrl,
1111
allSessions: props.allSessions,
1212
});
1313
}, [auth, props.redirectUrl, props.allSessions]);

0 commit comments

Comments
 (0)