Inspect stored credentials during authentication debugging
Investigate credential and token state in your Cordova/Capacitor app using explicitly allowed secure-storage keys in local development.
SecureStorage tools help you investigate which credentials or tokens are stored when debugging authentication behavior. They can read, replace, or remove explicitly allowed values in the native secure store; keep access limited to the keys and local workflow you need.
Warning: Secure-storage tools can expose or mutate credentials and tokens. Enable them only for explicit local debugging.
const options = Ansight.createOptionsBuilder()
.withRemoteTools({
secureStorage: {
appleService: "com.example.app",
preferencesName: "secure_debug",
allowedKeys: ["debug_token"],
},
})
.withAllToolAccess()
.build();
The suite exposes secure.get_value, secure.set_value, and secure.remove_key. Every operation uses Critical, including reads, so the runtime guard must allow critical tools with withAllToolAccess(). The key allow-list still applies. It operates on the native Keychain/secure store rather than web storage.