From 0d1c979433245e111e548a593014a26bed0050bc Mon Sep 17 00:00:00 2001 From: tswagger Date: Wed, 30 Aug 2023 14:14:39 -0500 Subject: [PATCH] Minor typo fix, clarification of key vs secretKey Signed-off-by: tswagger --- src/Authentication/Traits/HasHMACTokens.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Authentication/Traits/HasHMACTokens.php b/src/Authentication/Traits/HasHMACTokens.php index d6eb2df24..143955c39 100644 --- a/src/Authentication/Traits/HasHMACTokens.php +++ b/src/Authentication/Traits/HasHMACTokens.php @@ -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); } /**