|
|
@@ -39,8 +39,6 @@ public function refresh(RefreshTokenRequest $request): JsonResponse
|
|
|
{
|
|
|
$tokens = $this->authService->refresh(refreshToken: RefreshTokenDTO::fromRequest(request: $request));
|
|
|
if (is_null(value: $tokens)) {
|
|
|
- // It should never reach this point, but just in case
|
|
|
- Log::error(message: 'Unauthorized');
|
|
|
return $this->errorResponse(message: __(key: 'auth.unauthorized'), code: 403);
|
|
|
}
|
|
|
return $this->successResponse(payload: new AuthResource(resource: $tokens));
|