From 67414e1589bf6344190b41346bb1fea4dea86d5f Mon Sep 17 00:00:00 2001 From: Nnadozie Okeke <15310842+Nnadozie@users.noreply.github.com> Date: Tue, 17 Dec 2024 02:44:02 -0700 Subject: [PATCH] Update README.md Update example to include passing in KIDs. It seems obvious but this cost me hours of debugging time, and a simple update like this will save others this time. --- packages/oauth/oauth-client-node/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/oauth/oauth-client-node/README.md b/packages/oauth/oauth-client-node/README.md index 6ec7073f3a8..555a61b2fd3 100644 --- a/packages/oauth/oauth-client-node/README.md +++ b/packages/oauth/oauth-client-node/README.md @@ -48,9 +48,9 @@ const client = new NodeOAuthClient({ // Used to authenticate the client to the token endpoint. Will be used to // build the jwks object to be exposed on the "jwks_uri" endpoint. keyset: await Promise.all([ - JoseKey.fromImportable(process.env.PRIVATE_KEY_1), - JoseKey.fromImportable(process.env.PRIVATE_KEY_2), - JoseKey.fromImportable(process.env.PRIVATE_KEY_3), + JoseKey.fromImportable(process.env.PRIVATE_KEY_1, 'kid-1'), + JoseKey.fromImportable(process.env.PRIVATE_KEY_2, 'kid-2'), + JoseKey.fromImportable(process.env.PRIVATE_KEY_3, 'kid-3'), ]), // Interface to store authorization state data (during authorization flows)