use strict 'vars';
use warnings;
our $VERSION='0.15';
use parent 'HTTP::Request';
use JSON;
use Crypt::JWT qw(encode_jwt);
use MIME::Base64 qw( encode_base64url decode_base64url);
use C
ref $subscription eq 'HASH') {
$agent=$subscription;
} else {
eval {$agent=from_json($subscription); };
}
croak "Can't process subscription object" unless ($agent);
cro
ent using the browser's Push API C<PushManager.subscribe()> method. The argument can
be either a JSON string or a previously setup hash reference. The HTTP::Request uri is taken verbatim from the end