Skip to content

Commit

Permalink
Minor typo fix, clarification of key vs secretKey
Browse files Browse the repository at this point in the history
Signed-off-by: tswagger <tim@renowne.com>
  • Loading branch information
tswagger committed Aug 30, 2023
1 parent a4a1582 commit 0d1c979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Authentication/Traits/HasHMACTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ public function hmacTokens(): array
}

/**
* Given a secret Key, it will locate it within the system.
* Given an HMAC Key, it will locate it within the system.
*/
public function getHmacToken(?string $secretKey): ?AccessToken
public function getHmacToken(?string $key): ?AccessToken
{
if (empty($secretKey)) {
if (empty($key)) {
return null;
}

/** @var UserIdentityModel $identityModel */
$identityModel = model(UserIdentityModel::class);

return $identityModel->getHmacToken($this, $secretKey);
return $identityModel->getHmacToken($this, $key);
}

/**
Expand Down

0 comments on commit 0d1c979

Please sign in to comment.