locations dynamically in fanavaran

This commit is contained in:
2026-09-02 15:31:55 +03:30
parent ebfeef9e01
commit 5c2b660600
10 changed files with 307 additions and 4 deletions

View File

@@ -249,6 +249,8 @@ export class FanavaranAuthService {
options?: {
auditSession?: FanavaranAuditSession;
forceRefresh?: boolean;
/** Per-request Location override (does not affect token fingerprint). */
locationOverride?: string;
},
): Promise<{
authenticationToken: string;
@@ -261,11 +263,12 @@ export class FanavaranAuthService {
clientKey,
options,
);
const locationOverride = options?.locationOverride?.trim();
return {
authenticationToken,
CorpId: profile.auth.corpId,
ContractId: profile.auth.contractId,
Location: profile.auth.location,
Location: locationOverride || profile.auth.location,
};
}