customerTokenService = $customerTokenService; } /** * Get header to perform customer authenticated request * * @param string $email * @param string $password * @return string[] * @throws AuthenticationException */ public function execute(string $email = 'customer@example.com', string $password = 'password'): array { $customerToken = $this->customerTokenService->createCustomerAccessToken($email, $password); return ['Authorization' => 'Bearer ' . $customerToken]; } }