r $VERSION = '1.01';
$VERSION = eval $VERSION;
use Scalar::Util ();
use List::Util ();
use Mojo::JSON ();
use CryptX;
use Crypt::Misc ();
use Carp ();
my $isa = sub { Scalar::Util::blessed $_[0] &
signature) = split /\./, $token;
my $header = Mojo::JSON::decode_json Crypt::Misc::decode_b64u($hstring);
my $claims = Mojo::JSON::decode_json Crypt::Misc::decode_b64u($cstring);
$signature = Cr
thm };
my $hstring = Crypt::Misc::encode_b64u Mojo::JSON::encode_json($header);
my $cstring = Crypt::Misc::encode_b64u Mojo::JSON::encode_json($claims);
my $payload = "$hstring.$cstring";
my $