]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/ApiUtils.php
Run Unit Tests against PHP 7.4
[github/shaarli/Shaarli.git] / application / api / ApiUtils.php
index 1e3ac02e110bdb137d7f52a2ce521d079ef13875..5ac07c4d2f0e7331969f714325d00ce6a68a1edb 100644 (file)
@@ -15,6 +15,8 @@ class ApiUtils
      * @param string $token  JWT token extracted from the headers.
      * @param string $secret API secret set in the settings.
      *
+     * @return bool true on success
+     *
      * @throws ApiAuthorizationException the token is not valid.
      */
     public static function validateJwtToken($token, $secret)
@@ -45,6 +47,8 @@ class ApiUtils
         ) {
             throw new ApiAuthorizationException('Invalid JWT issued time');
         }
+
+        return true;
     }
 
     /**