@@ -124,7 +124,7 @@ public function check(array $credentials): Result
124124 if (! array_key_exists ('token ' , $ credentials ) || $ credentials ['token ' ] === '' ) {
125125 return new Result ([
126126 'success ' => false ,
127- 'reason ' => lang ('Auth.noToken ' , [config ('Auth ' )->authenticatorHeader ['hmac ' ]]),
127+ 'reason ' => lang ('Auth.noToken ' , [config ('AuthToken ' )->authenticatorHeader ['hmac ' ]]),
128128 ]);
129129 }
130130
@@ -161,7 +161,9 @@ public function check(array $credentials): Result
161161 // Hasn't been used in a long time
162162 if (
163163 isset ($ token ->last_used_at )
164- && $ token ->last_used_at ->isBefore (Time::now ()->subSeconds (config ('Auth ' )->unusedTokenLifetime ))
164+ && $ token ->last_used_at ->isBefore (
165+ Time::now ()->subSeconds (config ('AuthToken ' )->unusedTokenLifetime )
166+ )
165167 ) {
166168 return new Result ([
167169 'success ' => false ,
@@ -200,7 +202,7 @@ public function loggedIn(): bool
200202 $ request = service ('request ' );
201203
202204 return $ this ->attempt ([
203- 'token ' => $ request ->getHeaderLine (config ('Auth ' )->authenticatorHeader ['hmac ' ]),
205+ 'token ' => $ request ->getHeaderLine (config ('AuthToken ' )->authenticatorHeader ['hmac ' ]),
204206 ])->isOK ();
205207 }
206208
@@ -260,7 +262,7 @@ public function getFullHmacToken(): ?string
260262 /** @var IncomingRequest $request */
261263 $ request = service ('request ' );
262264
263- $ header = $ request ->getHeaderLine (config ('Auth ' )->authenticatorHeader ['hmac ' ]);
265+ $ header = $ request ->getHeaderLine (config ('AuthToken ' )->authenticatorHeader ['hmac ' ]);
264266
265267 if ($ header === '' ) {
266268 return null ;
0 commit comments