review and change from auto to needed type
This commit is contained in:
1 parent
5b1e7464c2
commit
da7ccbd802
7 files changed
+14
-14
No files matched your search
@@ -4,10 +4,10 @@
|
||||
bool verify_auth(const std::string token) {
|
||||
try {
|
||||
// parse token
|
||||
const auto decoded = jwt::decode(token);
|
||||
const jwt::decoded_jwt<jwt::traits::kazuho_picojson> decoded = jwt::decode(token);
|
||||
|
||||
// validate token
|
||||
const auto verifier = jwt::verify()
|
||||
const jwt::verifier<jwt::default_clock, jwt::traits::kazuho_picojson> verifier = jwt::verify()
|
||||
.allow_algorithm(jwt::algorithm::hs256{JWT_SECRET_KEY})
|
||||
.with_issuer("auth0");
|
||||
|
||||
|
||||
Reference in new issue
Block a user