Clarify cross-site signup messaging and pass domain on login.

Also strengthen the businesses three-dot menu glass background.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-10 01:02:49 +03:30
co-authored by Cursor
parent debca2cf99
commit 855f337006
5 changed files with 38 additions and 16 deletions
+12 -4
View File
@@ -10,10 +10,14 @@ import type {
UserProfile,
} from '../types/auth'
export async function login(cellNumber: string, password: string) {
export async function login(
cellNumber: string,
password: string,
domain?: string,
) {
const data = await apiRequest<LoginResponse>('/auth/login', {
method: 'POST',
body: { cellNumber, password },
body: domain ? { cellNumber, password, domain } : { cellNumber, password },
})
setTokens(data.accessToken, data.refreshToken)
@@ -79,10 +83,14 @@ export async function verifyOtp(cellNumber: string, code: string) {
})
}
export async function loginWithOtp(cellNumber: string, code: string) {
export async function loginWithOtp(
cellNumber: string,
code: string,
domain?: string,
) {
const data = await apiRequest<LoginResponse>('/auth/login-otp', {
method: 'POST',
body: { cellNumber, code },
body: domain ? { cellNumber, code, domain } : { cellNumber, code },
})
setTokens(data.accessToken, data.refreshToken)