mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 00:58:36 +00:00
fix(docs): typo for forward property (#6068)
This commit is contained in:
parent
afa18ef7fc
commit
6acfbda5a1
1 changed files with 5 additions and 5 deletions
|
|
@ -50,7 +50,7 @@ export const gatewayConfig = defineConfig({
|
|||
// Decode and validate the token using the provided signing key.
|
||||
singingKeyProviders: [createInlineSigningKeyProvider(signingKey)],
|
||||
// Forward the verified token payload to the upstream GraphQL subgraphs.
|
||||
forwarded: {
|
||||
forward: {
|
||||
payload: true
|
||||
}
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ import { defineConfig, createInlineSigningKeyProvider, createRemoteJwksSigningKe
|
|||
export const gatewayConfig = defineConfig({
|
||||
jwt: {
|
||||
// Forward the extracted token and claims to the upstream GraphQL subgraphs.
|
||||
forwarded: {
|
||||
forward: {
|
||||
payload: true, // optional, default is "true"
|
||||
token: false, // optional, default is "false"
|
||||
extensionsFieldName: "jwt", // optional, default is "jwt"
|
||||
|
|
@ -143,7 +143,7 @@ To pass the full token payload, you can use the `forwarded.claims` option:
|
|||
|
||||
```ts
|
||||
{
|
||||
forwarded: {
|
||||
forward: {
|
||||
payload: true // optional, default is "true"
|
||||
}
|
||||
}
|
||||
|
|
@ -168,7 +168,7 @@ You can also pass the full token, using the `forwarded.token` option:
|
|||
|
||||
```ts
|
||||
{
|
||||
forwarded: {
|
||||
forward: {
|
||||
payload: true, // optional, default is "true"
|
||||
token: true // optional, default is "false"
|
||||
}
|
||||
|
|
@ -200,7 +200,7 @@ Additionally, if you wish to change the name of the `jwt` field in the extension
|
|||
|
||||
```ts
|
||||
{
|
||||
forwarded: {
|
||||
forward: {
|
||||
extensionsFieldName: 'myJwt' // optional, default is "jwt"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue