Files
jwt-cpp/conan-example/README.md
Mehmet Ali Baykara d2da74a80f 🗂️ Add Conan example (#119)
* conan example added

* remove cmake overhead

* Update conan-example/CMakeLists.txt

change cmake version

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>

Co-authored-by: Mehmet Ali Baykara <mehmetali.baykara@encoway.de>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2021-01-09 10:03:22 -05:00

428 B

Conan example

In the current directory on Linux environment

mkdir build && cd build
conan install .. && cmake .. 
cmake --build .

run executable

./bin/conan-example

the output:

sub = "jrocket@example.com"
iss = "Online JWT Builder"
exp = 1641559177
aud = "www.example.com"
Surname = "Rocket"
Role = ["Manager","Project Administrator"]
iat = 1610023177
GivenName = "Johnny"
Email = "jrocket@example.com"