mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
fix(gateway/docs): jwt and sigv4 usage (#6608)
This commit is contained in:
parent
34ca0b65bf
commit
8a6e60e24f
1 changed files with 5 additions and 1 deletions
|
|
@ -188,7 +188,11 @@ import { defineConfig } from '@graphql-hive/gateway'
|
||||||
|
|
||||||
export const gatewayConfig = defineConfig({
|
export const gatewayConfig = defineConfig({
|
||||||
awsSigV4: {
|
awsSigV4: {
|
||||||
incoming: true
|
incoming: {
|
||||||
|
enabled: (request, context) =>
|
||||||
|
!('jwt' in context) && !request.headers.get('authorization')?.startsWith('Bearer')
|
||||||
|
// other options
|
||||||
|
}
|
||||||
},
|
},
|
||||||
jwt: {
|
jwt: {
|
||||||
reject: {
|
reject: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue