fix(gateway/docs): jwt and sigv4 usage (#6608)

This commit is contained in:
Arda TANRIKULU 2025-03-11 17:01:58 +03:00 committed by GitHub
parent 34ca0b65bf
commit 8a6e60e24f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: {