🧰 Linting and maintenance (#120)

* some manual fixes to obtain

* fairly close enough

* whitespace fixes

* add comment

* adding clang format + applied

* add editorconfig (supported natively by github web editor)

* apply linting to project

* clean up CI workflows

* zap vcpkg folder

actual one is here
https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp

* adding a logo

* thin the lines in the pluses

* use logo + more links to spec and examples

* Create lint.yml

* apply linting
This commit is contained in:
Chris Mc
2021-01-11 17:37:14 -05:00
committed by GitHub
parent ac3de9e69b
commit b21d80c22e
45 changed files with 2317 additions and 2423 deletions

View File

@@ -1,10 +1,11 @@
#include <jwt-cpp/jwt.h>
#include <iostream>
#include <jwt-cpp/jwt.h>
int main(int argc, const char** argv) {
std::string token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
std::string token =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
auto decoded = jwt::decode(token);
for(auto& e : decoded.get_payload_claims())
for (auto& e : decoded.get_payload_claims())
std::cout << e.first << " = " << e.second << std::endl;
}