From f7ef557b280c43c9648c060646a0b704171173b1 Mon Sep 17 00:00:00 2001 From: maltewirz <32659282+maltewirz@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:20:06 +0200 Subject: [PATCH] Update connecting.mdx Changes tested myself and inspired by documention on aws rds signer https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-rds-signer/ --- docs/pages/features/connecting.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/features/connecting.mdx b/docs/pages/features/connecting.mdx index 191ac0e2d..97b5c779f 100644 --- a/docs/pages/features/connecting.mdx +++ b/docs/pages/features/connecting.mdx @@ -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,