Skip to content

Commit

Permalink
Made C++ format Happy
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElixZammuto committed Mar 17, 2024
1 parent 968b796 commit 8ba64ff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/confighttp.cpp
Expand Up @@ -784,12 +784,7 @@ namespace confighttp {
return;
}
outputTree.put("status", "true");
auto token = jwt::create().set_type("JWT")
.set_issued_at(std::chrono::system_clock::now())
.set_expires_at(std::chrono::system_clock::now() + std::chrono::seconds{3600})
.set_issuer("sunshine-" + http::unique_id)
.set_payload_claim("sub", jwt::claim(std::string(config::sunshine.username)))
.sign(jwt::algorithm::hs256 { jwt_key });
auto token = jwt::create().set_type("JWT").set_issued_at(std::chrono::system_clock::now()).set_expires_at(std::chrono::system_clock::now() + std::chrono::seconds { 3600 }).set_issuer("sunshine-" + http::unique_id).set_payload_claim("sub", jwt::claim(std::string(config::sunshine.username))).sign(jwt::algorithm::hs256 { jwt_key });
std::stringstream cookie_stream;
cookie_stream << "sunshine_session=";
cookie_stream << token;
Expand Down

0 comments on commit 8ba64ff

Please sign in to comment.