We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b5aa05 + 8aa52c1 commit 38f08b5Copy full SHA for 38f08b5
1 file changed
lib/Amazon/CreatorsAPI/Auth.pm
@@ -35,7 +35,7 @@ sub new {
35
credential_secret => $credential_secret,
36
credential_version => $credential_version,
37
is_lwa => !!($credential_version =~ m!^3\.!),
38
- auth_endpoint => $opt->{auth_endpoint} || $class->_auth_endpoint($credential_version),
+ auth_endpoint => $opt->{auth_endpoint} || _auth_endpoint($credential_version),
39
ua => $opt->{ua} || HTTP::Tiny->new,
40
grant_type => $opt->{grant_type} || 'client_credentials',
41
access_token => '',
@@ -130,7 +130,6 @@ my $AUTH_ENDPOINT_MAP = {
130
};
131
132
sub _auth_endpoint {
133
- my $class = shift;
134
my $version = shift;
135
136
if (!$version || !exists $AUTH_ENDPOINT_MAP->{$version}) {
0 commit comments