From b3de79da98a4b89acfeb9ca851a51eca44555800 Mon Sep 17 00:00:00 2001 From: Christopher McArthur Date: Wed, 20 May 2020 14:26:48 -0400 Subject: [PATCH] testing just picojson templating --- include/jwt-cpp/jwt.h | 2 ++ tests/CMakeLists.txt | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index 6ffcae5..1136630 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -1668,6 +1668,7 @@ namespace jwt { /** * Return a picojson builder instance to create a new token */ + inline builder create() { return builder(); } @@ -1691,6 +1692,7 @@ namespace jwt { * \throws std::invalid_argument Token is not in correct format * \throws std::runtime_error Base64 decoding failed or invalid json */ + inline decoded_jwt decode(const std::string& token) { return decoded_jwt(token); } diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 397c737..7a17b07 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -7,8 +7,7 @@ set(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/HelperTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/TestMain.cpp ${CMAKE_CURRENT_SOURCE_DIR}/TokenFormatTest.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/TokenTest.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/NlohmannTest.cpp) + ${CMAKE_CURRENT_SOURCE_DIR}/TokenTest.cpp) add_executable(jwt-cpp-test ${TEST_SOURCES}) target_compile_options(jwt-cpp-test PRIVATE