=> [qw(endpoint auth_key secret_key identity_scope http keys)],
);
use Carp;
use HTTP::Tiny;
use JSON;
use Crypt::PRNG qw(random_bytes);
use Crypt::Misc qw(encode_b64 decode_b64);
use UID2::Client::
keys(_parse_json($self->get_latest_keys));
}; if ($@) {
return { is_success => undef, reason => $@ };
}
+{ is_success => 1 };
}
sub refresh_json {
my ($self, $json) = @_;
eval {
$self->keys(_parse_json($json));
}; if ($@) {
return { is_success => undef, reason => $@ };
}
+{ is_success => 1 };
}
my $V2_NONCE_LEN = 8;
sub get_latest_keys {