forked from Yara724/api
locations dynamically in fanavaran
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user