Update jwt.md (#537)

Corrected the usage of the JWT signers property.
This commit is contained in:
Michael 2020-08-05 21:30:53 +01:00 committed by GitHub
parent 83ce79ec50
commit e5fece6f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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<HTTPStatus> in
return .ok
}
}
```
```