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