Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/security/jwt.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion docs/security/jwt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down