mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
Exception and non exception based decoding
This commit is contained in:
parent
7a511c46fe
commit
c484ced63d
4 changed files with 53 additions and 6 deletions
|
@ -722,11 +722,21 @@ private: // Data Members
|
|||
jwt_object jwt_decode(const string_view encoded_str, const string_view key, bool validate=true);
|
||||
|
||||
/**
|
||||
* NOTE: Memory allocation exceptions are not caught.
|
||||
*/
|
||||
template <typename SequenceT, typename... Args>
|
||||
jwt_object decode(const string_view enc_str,
|
||||
const string_view key,
|
||||
const params::detail::algorithms_param<SequenceT>& algos,
|
||||
std::error_code& ec,
|
||||
Args&&... args);
|
||||
|
||||
/**
|
||||
*/
|
||||
template <typename SequenceT, typename... Args>
|
||||
jwt_object decode(const string_view enc_str,
|
||||
const string_view key,
|
||||
const params::detail::algorithms_param<SequenceT>& algos,
|
||||
Args&&... args);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue