Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
JwtAuth.hpp
Go to the documentation of this file.
1#pragma once
3#include <string>
4
5namespace middleware {
6
22routing::Middleware jwt_auth(const std::string& secret_key);
23
24} // namespace middleware
routing::Middleware jwt_auth(const std::string &secret_key)
JWT Authentication middleware using HMAC-SHA256 (HS256).
Definition JwtAuth.cpp:65
Definition Compress.hpp:4
std::function< bool(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)> Middleware
Definition Router.hpp:17