From e5fece6f5cf043ca7afdeb7b7b979fa98caa1bf1 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 5 Aug 2020 21:30:53 +0100 Subject: [PATCH] Update jwt.md (#537) Corrected the usage of the JWT signers property. --- 4.0/docs/jwt.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4.0/docs/jwt.md b/4.0/docs/jwt.md index eee8c790..2b1b293a 100644 --- a/4.0/docs/jwt.md +++ b/4.0/docs/jwt.md @@ -345,7 +345,7 @@ let jwksData = try Data( let jwks = try JSONDecoder().decode(JWKS.self, from: jwksData) // Create signers and add JWKS. -try app.signers.use(jwks: jwks) +try app.jwt.signers.use(jwks: jwks) ``` You can now pass JWTs from Apple to the `verify` method. The key identifier (`kid`) in the JWT header will be used to automatically select the correct key for verification. @@ -418,4 +418,4 @@ app.get("microsoft") { req -> EventLoopFuture in return .ok } } -``` \ No newline at end of file +```