sec.resecureCredentials() as null
This function re-encrypts credentials, if necessary.
// execute this against the security database declareUpdate(); const sec = require('/MarkLogic/security'); sec.resecureCredentials();