Skip to content

Commit e30b41d

Browse files
authored
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/
1 parent 6be857e commit e30b41d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/features/connecting.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ const signerOptions = {
101101
username: 'api-user',
102102
}
103103

104-
const signer = new RDS.Signer()
104+
const signer = new RDS.Signer(signerOptions)
105105

106-
const getPassword = () => signer.getAuthToken(signerOptions)
106+
const getPassword = () => signer.getAuthToken()
107107

108108
const pool = new Pool({
109109
user: signerOptions.username,

0 commit comments

Comments
 (0)