Skip to content

Commit

Permalink
Update 02-jws.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat authored Jan 27, 2022
1 parent 7e7fb5d commit bb011b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/02-jws.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ To parse a JWS stored in a file, use [`jws.ReadFile()`](https://pkg.go.dev/githu
message, _ := jws.ReadFile(`message.jws`)
```

## Parse a JWS with detached payload
## Verify a JWS with detached payload

To parse a JWS with detached payload, use the `jws.WithDetachedPayload()` option:

```go
signed, _ := jws.
signed, _ := jws.Verify(signed, alg, key, jws.WithDetachedPayload(payload))
```

# Signing

Expand Down

0 comments on commit bb011b5

Please sign in to comment.