Skip to content

Commit

Permalink
[jwt] fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Sep 3, 2024
1 parent d644d85 commit 9238163
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/pages/docs/features/jwt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const yoga = createYoga({
plugins: [
useJWT({
// Configure your signing providers: either a local signing-key or a remote JWKS are supported.
singingKeyProviders: [
signingKeyProviders: [
createInlineSigningKeyProvider(signingKey),
createRemoteJwksSigningKeyProvider({ jwksUri: 'https://example.com/.well-known/jwks.json' })
]
Expand Down Expand Up @@ -230,7 +230,7 @@ const yoga = createYoga({
// ...
plugins: [
useJWT({
singingKeyProviders: [createInlineSigningKeyProvider(process.env.MY_JWT_SECRET)]
signingKeyProviders: [createInlineSigningKeyProvider(process.env.MY_JWT_SECRET)]
})
]
})
Expand All @@ -253,7 +253,7 @@ const yoga = createYoga({
// ...
plugins: [
useJWT({
singingKeyProviders: [
signingKeyProviders: [
createRemoteJwksSigningKeyProvider({
jwksUri: 'https://example.com/.well-known/jwks.json'
})
Expand All @@ -278,7 +278,7 @@ const yoga = createYoga({
// ...
plugins: [
useJWT({
singingKeyProviders: [
signingKeyProviders: [
// In case your remote provider is not available, the plugin will try use the inline provider.
createRemoteJwksSigningKeyProvider({
jwksUri: 'https://example.com/.well-known/jwks.json'
Expand Down

0 comments on commit 9238163

Please sign in to comment.