src/Util/LTI13.php
public static function verifyPublicKey($raw_jwt, $public_key, $algs) {
        try {
            // $decoded = JWT::decode($raw_jwt, $public_key, array('RS256'));
            $decoded = JWT::decode($raw_jwt, $public_key, $algs);
            // $decoded_array = json_decode(json_encode($decoded), true);
            return true;
        } catch(\Exception $e) {
            return $e;
        }
    }
public static function verifyPublicKey($raw_jwt, $public_key, $algs) {
        try {
            // $decoded = JWT::decode($raw_jwt, $public_key, array('RS256'));
            $decoded = JWT::decode($raw_jwt, $public_key, $algs);
            // $decoded_array = json_decode(json_encode($decoded), true);
            return true;
        } catch(\Exception $e) {
            return $e;
        }
    }
public static function verifyPublicKey ( $ raw_jwt , $ public_key , $ algs ) { try { // $decoded = JWT::decode($raw_jwt, $public_key, array('RS256')); $ decoded = JWT :: decode ( $ raw_jwt , $ public_key , $ algs ) ; // $decoded_array = json_decode(json_encode($decoded), true); return true ; } catch ( \ Exception $ e ) { return $ e ; } }
Verify the Public Key for this request

@return mixed This returns true if the request verified.  If the request did not verify,
this returns the exception that was generated.
Verify the Public Key for this request