diff --git a/include/jwt/jwt.hpp b/include/jwt/jwt.hpp index 728dc5d..b6dae3d 100644 --- a/include/jwt/jwt.hpp +++ b/include/jwt/jwt.hpp @@ -66,9 +66,8 @@ inline enum type str_to_type(const jwt::string_view typ) noexcept if (!strcasecmp(typ.data(), "jwt")) return type::JWT; else if(!strcasecmp(typ.data(), "none")) return type::NONE; - throw std::runtime_error("Unknown token type"); - assert (0 && "Code not reached"); + return type::NONE; }