Skip to content

Commit f5dc561

Browse files
authored
Merge pull request #141 from kinde-oss/fix/logoutlink-redirect
2 parents d7d1e12 + 9697ce1 commit f5dc561

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)