Skip to content

Commit d6192f4

Browse files
authored
docs: replace deprecated singingKeyProviders in favor of signingKeyProviders (#7048)
1 parent afc7168 commit d6192f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/web/docs/src/content/gateway/authorization-authentication.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const gatewayConfig = defineConfig({
5454
// Look and extract for the token in the 'authorization' header, with the 'Bearer' prefix.
5555
tokenLookupLocations: [extractFromHeader({ name: 'authorization', prefix: 'Bearer' })],
5656
// Decode and validate the token using the provided signing key.
57-
singingKeyProviders: [createInlineSigningKeyProvider(signingKey)],
57+
signingKeyProviders: [createInlineSigningKeyProvider(signingKey)],
5858
// Forward the verified token payload to the upstream GraphQL subgraphs.
5959
forward: {
6060
payload: true
@@ -78,7 +78,7 @@ export const gatewayConfig = defineConfig({
7878
extensionsFieldName: "jwt", // optional, default is "jwt"
7979
},
8080
// Configure your signing providers: either a local signing-key or a remote JWKS are supported.
81-
singingKeyProviders: [
81+
signingKeyProviders: [
8282
createInlineSigningKeyProvider(signingKey),
8383
createRemoteJwksSigningKeyProvider({ jwksUri: 'https://example.com/.well-known/jwks.json' })
8484
]
@@ -526,7 +526,7 @@ export const gatewayConfig = defineConfig({
526526
// ...
527527
jwt: {
528528
// ...
529-
singingKeyProviders: [createInlineSigningKeyProvider(process.env.MY_JWT_SECRET)]
529+
signingKeyProviders: [createInlineSigningKeyProvider(process.env.MY_JWT_SECRET)]
530530
}
531531
})
532532
```
@@ -552,7 +552,7 @@ export const gatewayConfig = defineConfig({
552552
// ...
553553
jwt: {
554554
// ...
555-
singingKeyProviders: [
555+
signingKeyProviders: [
556556
createRemoteJwksSigningKeyProvider({
557557
jwksUri: 'https://example.com/.well-known/jwks.json'
558558
})
@@ -580,7 +580,7 @@ export const gatewayConfig = defineConfig({
580580
// ...
581581
jwt: {
582582
// ...
583-
singingKeyProviders: [
583+
signingKeyProviders: [
584584
// In case your remote provider is not available, the plugin will try use the inline provider.
585585
createRemoteJwksSigningKeyProvider({
586586
jwksUri: 'https://example.com/.well-known/jwks.json'

0 commit comments

Comments
 (0)