diff --git a/docs/security/jwt.es.md b/docs/security/jwt.es.md index 091f2040..30a934d2 100644 --- a/docs/security/jwt.es.md +++ b/docs/security/jwt.es.md @@ -94,7 +94,7 @@ struct TestPayload: JWTPayload { La firma de la carga útil se realiza llamando al método `sign` en el módulo `JWT`, por ejemplo dentro de un manejador de ruta: ```swift -app.post("login") { req async throws -> [String: String] +app.post("login") { req async throws -> [String: String] in let payload = TestPayload( subject: "vapor", expiration: .init(value: .distantFuture), diff --git a/docs/security/jwt.md b/docs/security/jwt.md index 8ea9b226..31aa074f 100644 --- a/docs/security/jwt.md +++ b/docs/security/jwt.md @@ -93,7 +93,7 @@ struct TestPayload: JWTPayload { Signing the payload is done by calling the `sign` method on the `JWT` module, for example inside of a route handler: ```swift -app.post("login") { req async throws -> [String: String] +app.post("login") { req async throws -> [String: String] in let payload = TestPayload( subject: "vapor", expiration: .init(value: .distantFuture),