fix(auth): Invite with public url and social sso. (#10216)

Correct the URL parameter name from "inviteHash" to
"workspaceInviteHash" and enhance domain URL handling for
multi-workspace environments.
This commit is contained in:
Antoine Moreaux
2025-02-14 12:58:01 +01:00
committed by GitHub
parent 171091e1ef
commit a4a085392d
4 changed files with 30 additions and 6 deletions

View File

@ -455,7 +455,7 @@ export const useAuth = () => {
) => {
const url = new URL(`${REACT_APP_SERVER_BASE_URL}${path}`);
if (isDefined(params.workspaceInviteHash)) {
url.searchParams.set('inviteHash', params.workspaceInviteHash);
url.searchParams.set('workspaceInviteHash', params.workspaceInviteHash);
}
if (isDefined(params.workspacePersonalInviteToken)) {
url.searchParams.set(