protected function urlSafeDecode($data, $asJson = true)
    {
        if (!$asJson) {
            return \base64_decode(\strtr($data, '-_', '+/'));
        }

        $data = \json_decode(\base64_decode(\strtr($data, '-_', '+/')));
        $this->validateLastJson();

        return $data;
    }
protected function urlSafeDecode($data, $asJson = true)
    {
        if (!$asJson) {
            return \base64_decode(\strtr($data, '-_', '+/'));
        }

        $data = \json_decode(\base64_decode(\strtr($data, '-_', '+/')));
        $this->validateLastJson();

        return $data;
    }
protected function urlSafeDecode ( $ data , $ asJson = true ) { if ( ! $ asJson ) { return \ base64_decode ( \ strtr ( $ data , '-_' , '+/' ) ) ; } $ data = \ json_decode ( \ base64_decode ( \ strtr ( $ data , '-_' , '+/' ) ) ) ; $ this -> validateLastJson ( ) ; return $ data ; }
URL safe base64 decode.

@param array|string $data
@param bool         $asJson Whether to parse as JSON (defaults to true).

@throws JWTException When JSON encode fails.

@return array|\stdClass|string
URL safe base64 decode .