From 625b67396120e305ce5c4714d78cabd28e035d57 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Wed, 19 Sep 2018 18:59:03 +0800 Subject: [PATCH] expose verify method. --- src/JWT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JWT.php b/src/JWT.php index 22a67e32..612dd621 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -218,7 +218,7 @@ public static function sign($msg, $key, $alg = 'HS256') * * @throws DomainException Invalid Algorithm or OpenSSL failure */ - private static function verify($msg, $signature, $key, $alg) + public static function verify($msg, $signature, $key, $alg) { if (empty(static::$supported_algs[$alg])) { throw new DomainException('Algorithm not supported');