Skip to content

Commit

Permalink
Fix demo code in README.md (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft authored Mar 31, 2024
1 parent 364a557 commit bd682ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ In order to verify a token you first build a verifier and use it to verify a dec
```cpp
auto verifier = jwt::verify()
.with_issuer("auth0")
.with_claim("sample", jwt::claim(std::string("test")));
.allow_algorithm(jwt::algorithm::hs256{"secret"})
.with_claim("sample", jwt::claim(std::string("test")))
.allow_algorithm(jwt::algorithm::hs256{"secret"});

verifier.verify(decoded_token);
```
Expand Down

0 comments on commit bd682ed

Please sign in to comment.