Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nnadozie authored Dec 17, 2024
1 parent fecbe75 commit 67414e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/oauth/oauth-client-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 67414e1

Please sign in to comment.