# TSLocationConfig

Location tracking configuration for [`triggerAction()`](/sdk-ref/cordova-ts-accountprotection/drs#triggeraction). Controls how device location data is collected when reporting an action event. The user must consent to sharing location in advance (see [Track geolocation](/guides/risk/report_geolocation)).

## Properties

### mode

• **mode**: `string`

The location collection mode. Accepted values: `"disabled"`, `"default"`, `"forceCurrent"`, `"forceLastKnown"`, `"lastKnown"`

### validFor

• `Optional` **validFor**: `number`

For `lastKnown` mode, return location only if not older than this many seconds