Skip to content

Commit 8a6e60e

Browse files
authored
fix(gateway/docs): jwt and sigv4 usage (#6608)
1 parent 34ca0b6 commit 8a6e60e

File tree

1 file changed

+5
-1
lines changed
  • packages/web/docs/src/content/gateway/other-features/security

1 file changed

+5
-1
lines changed

packages/web/docs/src/content/gateway/other-features/security/aws-sigv4.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ import { defineConfig } from '@graphql-hive/gateway'
188188

189189
export const gatewayConfig = defineConfig({
190190
awsSigV4: {
191-
incoming: true
191+
incoming: {
192+
enabled: (request, context) =>
193+
!('jwt' in context) && !request.headers.get('authorization')?.startsWith('Bearer')
194+
// other options
195+
}
192196
},
193197
jwt: {
194198
reject: {

0 commit comments

Comments
 (0)