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
2
#include <
orbit/routing/Router.hpp
>
3
#include <string>
4
5
namespace
middleware
{
6
22
routing::Middleware
jwt_auth
(
const
std::string& secret_key);
23
24
}
// namespace middleware
Router.hpp
middleware::jwt_auth
routing::Middleware jwt_auth(const std::string &secret_key)
JWT Authentication middleware using HMAC-SHA256 (HS256).
Definition
JwtAuth.cpp:65
middleware
Definition
Compress.hpp:4
routing::Middleware
std::function< bool(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)> Middleware
Definition
Router.hpp:17
include
orbit
middleware
JwtAuth.hpp
Generated by
1.9.8