From bd682eddba5b5fd56718a9cc13dfe2723b2986cd Mon Sep 17 00:00:00 2001 From: Yurun Date: Sun, 31 Mar 2024 11:26:20 +0800 Subject: [PATCH] Fix demo code in README.md (#336) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 803bbae8b..74800cf8b 100644 --- a/README.md +++ b/README.md @@ -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); ```