Skip to content

Commit 1629fcb

Browse files
Merge pull request #16 from zans-laksa/1794-auth-fixes
Removed Auth Token Generator Custom Resolver
2 parents 8a39f4a + 22cdd41 commit 1629fcb

File tree

3 files changed

+1
-90
lines changed

3 files changed

+1
-90
lines changed

src/Model/Resolver/GenerateCustomerToken.php

-86
This file was deleted.

src/etc/di.xml

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
type="ScandiPWA\CustomerGraphQl\Model\Customer\ExtractCustomerData"/>
1515
<preference for="Magento\CustomerGraphQl\Model\Customer\GetCustomer"
1616
type="ScandiPWA\CustomerGraphQl\Model\Customer\GetCustomer"/>
17-
<preference for="Magento\CustomerGraphQl\Model\Resolver\GenerateCustomerToken"
18-
type="ScandiPWA\CustomerGraphQl\Model\Resolver\GenerateCustomerToken"/>
1917
<type name="Magento\Catalog\Helper\Data">
2018
<arguments>
2119
<argument name="customerSession" xsi:type="object">ScandiPWA\CustomerGraphQl\Model\Session</argument>

src/etc/schema.graphqls

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
type Mutation {
1515
confirmCustomerEmail(key: String!, email: String!, password: String!): CreateCustomerType @resolver(class: "\\ScandiPWA\\CustomerGraphQl\\Model\\Resolver\\ConfirmEmail") @doc(description:"Confirm customer account")
16-
generateCustomerToken(email: String!, password: String!, guest_quote_id: String): CustomerToken @resolver(class: "\\ScandiPWA\\CustomerGraphQl\\Model\\Resolver\\GenerateCustomerToken") @doc(description:"Retrieve the customer token")
1716
resendConfirmationEmail(email: String!): CustomerActionConfirmationType @resolver(class: "\\ScandiPWA\\CustomerGraphQl\\Model\\Resolver\\ResendConfirmationEmail") @doc(description:"Resend customer confirmation")
1817
forgotPassword(email: String!): CustomerActionConfirmationType @resolver(class: "\\ScandiPWA\\CustomerGraphQl\\Model\\Resolver\\ForgotPassword") @doc(description:"Resend customer confirmation")
1918
s_resetPassword(password: String!, token: String!, password_confirmation: String!): ResetPasswordType @resolver(class: "\\ScandiPWA\\CustomerGraphQl\\Model\\Resolver\\ResetPassword") @doc(description:"Resend customer confirmation")
@@ -40,4 +39,4 @@ type AvailabilityResponseType {
4039

4140
type Customer @doc(description: "Customer defines the customer name and address and other details") {
4241
confirmation_required: Boolean @doc(description: "Email confirmation is required")
43-
}
42+
}

0 commit comments

Comments
 (0)