Skip to content

Commit

Permalink
Merge pull request #5797 from realm/tg/jwt-test
Browse files Browse the repository at this point in the history
Bump the expiration date on a jwt token used in a test
  • Loading branch information
tgoyne authored Aug 31, 2022
2 parents 7c3c9fc + 057241c commit 2a3911c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "^Windows")
elseif(APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CATCH_CONFIG_NO_POSIX_SIGNALS ON CACHE BOOL "Disable Catch support for POSIX signals on Apple platforms other than macOS")
endif()
set(CATCH_CONFIG_ENABLE_ALL_STRINGMAKERS ON CACHE BOOL "Enable Catch2's optional standard library stringmakers")

add_subdirectory(external/catch EXCLUDE_FROM_ALL)

Expand Down
2 changes: 1 addition & 1 deletion test/object-store/sync/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static std::string HMAC_SHA256(std::string_view key, std::string_view data)
static std::string create_jwt(const std::string& appId)
{
nlohmann::json header = {{"alg", "HS256"}, {"typ", "JWT"}};
nlohmann::json payload = {{"aud", appId}, {"sub", "someUserId"}, {"exp", 1661896476}};
nlohmann::json payload = {{"aud", appId}, {"sub", "someUserId"}, {"exp", 1961896476}};

payload["user_data"]["name"] = "Foo Bar";
payload["user_data"]["occupation"] = "firefighter";
Expand Down

0 comments on commit 2a3911c

Please sign in to comment.