Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Oct 13, 2024
1 parent e5376bb commit 5dad42a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/Middleware/AuthenticateApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function authenticate($request, array $guards): void

$guard = MoonShineAuth::getGuard();

if(empty($request->bearerToken())) {
if (empty($request->bearerToken())) {
$this->unauthenticated($request, [$guard, ...$guards]);
}

Expand Down
4 changes: 2 additions & 2 deletions src/JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public function parse(string $token): string
)
);

if(! $configuration->validator()->validate($parsedToken, ...$configuration->validationConstraints())) {
if (! $configuration->validator()->validate($parsedToken, ...$configuration->validationConstraints())) {
throw new JWTValidatorException('Validation failed');
}

if($parsedToken->isExpired(now())) {
if ($parsedToken->isExpired(now())) {
throw new JWTExpiredException('Token is expired');
}

Expand Down

0 comments on commit 5dad42a

Please sign in to comment.