Emarref\Jwt\Encoding\Base64::decode PHP Method

decode() public method

public decode ( string $value ) : string
$value string
return string
    public function decode($value)
    {
        if (empty($value)) {
            return $value;
        }
        if ($this->urlSafe) {
            $decoded = $this->urlDecode($value);
        } else {
            $decoded = $value;
        }
        $decoded = base64_decode($decoded, $this->strict);
        return $decoded;
    }