Use .env file and add all usernames and passwords in there. You can also have multiple files and pass the file based on test cases. Later add all these under secrets when running in CI/CD. You can also use this package to make it a bit easier but not mandatory.
https://www.npmjs.com/package/cypress-dotenv