File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/CustomerGraphQl/Model/Resolver Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento\Framework\Exception\AuthenticationException;
11
11
use Magento\Framework\GraphQl\Config\Element\Field;
12
- use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException ;
12
+ use Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException ;
13
13
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
14
14
use Magento\Framework\GraphQl\Query\ResolverInterface;
15
15
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
@@ -56,7 +56,7 @@ public function resolve(
56
56
$token = $this->customerTokenService->createCustomerAccessToken($args['email'], $args['password']);
57
57
return ['token' => $token];
58
58
} catch (AuthenticationException $e) {
59
- throw new GraphQlAuthorizationException (__($e->getMessage()), $e);
59
+ throw new GraphQlAuthenticationException (__($e->getMessage()), $e);
60
60
}
61
61
}
62
62
}
You can’t perform that action at this time.
0 commit comments