Fix business tenant binding and update password on cross-site signup.

Resolve the active business from the host domain so multi-business staff no longer load another tenant’s CMS data, and replace the Meshkee password when linking an existing account to a new site.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-21 12:07:17 +03:30
co-authored by Cursor
parent 193c63bfd2
commit 89269dff04
6 changed files with 52 additions and 50 deletions
@@ -51,6 +51,8 @@ export interface MeResponse {
export interface RegisterResponse extends LoginResponse {
smsEnabled?: boolean
/** True when an existing Meshkee account was linked and its password was replaced. */
passwordUpdated?: boolean
registeredBusiness?: { id: string; name: string; slug: string }
}