fix: add /platform prefix to signIn/signOut redirect URIs
All checks were successful
CI / build (push) Successful in 42s
CI / docker (push) Successful in 41s

LoginPage and useAuth used window.location.origin without the /platform
base path, causing redirect_uri mismatch with Logto's registered URIs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-05 23:25:53 +02:00
parent 5a847e075c
commit 43967dcf2e
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export function LoginPage() {
} }
const handleLogin = () => { const handleLogin = () => {
signIn(`${window.location.origin}/callback`); signIn(`${window.location.origin}/platform/callback`);
}; };
return ( return (

View File

@@ -7,7 +7,7 @@ export function useAuth() {
const { currentTenantId } = useOrgStore(); const { currentTenantId } = useOrgStore();
const logout = useCallback(() => { const logout = useCallback(() => {
signOut(window.location.origin + '/login'); signOut(window.location.origin + '/platform/login');
}, [signOut]); }, [signOut]);
return { return {