Skip to content

Commit

Permalink
added examples
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Feb 21, 2024
1 parent 3c91427 commit 9de07ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ npm i undici undici-oidc-interceptor
const { Agent } = require('undici')
const { createOAuthIntercpetor } = require('undici-oidc-interceptor')
const dispatcher = new Agent({
intercpetors: {
Pool: [createOAuthIntercpetor({
interceptors: {
Pool: [createOidcIntercpetor({
// The paramerts for the cliend_credentials grant of OIDC
clientId: 'FILLME',
clientSecret: 'FILLME',
Expand All @@ -34,7 +34,7 @@ const dispatcher = new Agent({
// The origins that this interceptor will add the `Authorization` header
// automatically
origins: ['FILLME']
origins: ['FILLME'],
// OPTIONAL: an initial access token
accessToken: ''
Expand Down

0 comments on commit 9de07ad

Please sign in to comment.