mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Add api to supply secret based on decoded payload
This commit is contained in:
parent
0b68fd46fb
commit
74b7b344c6
4 changed files with 41 additions and 3 deletions
|
@ -82,7 +82,7 @@ inline jwt::string_view type_to_str(SCOPED_ENUM type typ)
|
|||
case type::JWT: return "JWT";
|
||||
default: assert (0 && "Unknown type");
|
||||
};
|
||||
|
||||
__builtin_unreachable();
|
||||
assert (0 && "Code not reached");
|
||||
}
|
||||
|
||||
|
@ -1121,6 +1121,9 @@ public: //TODO: Not good
|
|||
template <typename DecodeParams, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::secret_param s, Rest&&... args);
|
||||
|
||||
template <typename DecodeParams, typename T, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::secret_function_param<T>&& s, Rest&&... args);
|
||||
|
||||
template <typename DecodeParams, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::leeway_param l, Rest&&... args);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue