Update connecting.mdx (#3266)

Changes tested myself and inspired by documention on aws rds signer https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-rds-signer/
This commit is contained in:
maltewirz 2025-05-11 05:23:27 +02:00 committed by GitHub
parent 6be857e9d3
commit e30b41d481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,9 +101,9 @@ const signerOptions = {
username: 'api-user',
}
const signer = new RDS.Signer()
const signer = new RDS.Signer(signerOptions)
const getPassword = () => signer.getAuthToken(signerOptions)
const getPassword = () => signer.getAuthToken()
const pool = new Pool({
user: signerOptions.username,