forked from Yara724/api
car body policy and sales extended
This commit is contained in:
@@ -251,6 +251,8 @@ export class FanavaranAuthService {
|
||||
forceRefresh?: boolean;
|
||||
/** Per-request Location override (does not affect token fingerprint). */
|
||||
locationOverride?: string;
|
||||
/** Per-request ContractId override (بدنه vs ثالث). Does not affect token fingerprint. */
|
||||
contractIdOverride?: string;
|
||||
},
|
||||
): Promise<{
|
||||
authenticationToken: string;
|
||||
@@ -264,10 +266,11 @@ export class FanavaranAuthService {
|
||||
options,
|
||||
);
|
||||
const locationOverride = options?.locationOverride?.trim();
|
||||
const contractIdOverride = options?.contractIdOverride?.trim();
|
||||
return {
|
||||
authenticationToken,
|
||||
CorpId: profile.auth.corpId,
|
||||
ContractId: profile.auth.contractId,
|
||||
ContractId: contractIdOverride || profile.auth.contractId,
|
||||
Location: locationOverride || profile.auth.location,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user