magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 683 forks source link

[bug]: Login issue with PWA 14.0 #4258

Closed fmaniconereply closed 1 month ago

fmaniconereply commented 3 months ago

In the new PWA 14.0.0 and Adobe Commerce 2.4.6, we are experiencing an issue with user login. The session token from the graph is returned, but the user is not logged in.

m2-assistant[bot] commented 3 months ago

Hi @fmaniconereply. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

fmaniconereply commented 3 months ago

the problem is here https://github.com/magento/pwa-studio/blob/release/14.0/packages/peregrine/lib/Apollo/links/index.js

coresh commented 3 months ago

PWA 14.0.0 and Adobe Commerce 2.4.7: also the issue with user login

**Reproducing:

  1. Guest. Add any product to cart -> Click to the Top panel cart icon -> Click to "CHECKOUT" -> The result Path of the Magento PWA:

    https://www.example.com/checkout
  2. Clicking to "SIGN IN" button ->"SIGN IN"-button status bind to "disabled" JS error output:

Screenshot-20240505184536-783x837

screenshot_20240508-110715

10.1e3a631584833b08cad9.js:27 Uncaught (in promise) TypeError: t is not a function
    at 10.1e3a631584833b08cad9.js:27:7
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (client.ce4922dbe5e196557e47.js:3083:174)
    at _next (client.ce4922dbe5e196557e47.js:3085:19)
    at client.ce4922dbe5e196557e47.js:3085:135
    at new Promise (<anonymous>)
    at client.ce4922dbe5e196557e47.js:3084:8
    at 10.1e3a631584833b08cad9.js:34:29
    at FormController.onSubmitHandler (vendors.07e06f25e47d84889be1.js:535:160)
    at FormController.emit (client.ce4922dbe5e196557e47.js:46:25)
(anonymous) @ 10.1e3a631584833b08cad9.js:27
asyncGeneratorStep @ client.ce4922dbe5e196557e47.js:3083
_next @ client.ce4922dbe5e196557e47.js:3085
(anonymous) @ client.ce4922dbe5e196557e47.js:3085
(anonymous) @ client.ce4922dbe5e196557e47.js:3084
(anonymous) @ 10.1e3a631584833b08cad9.js:34
onSubmitHandler @ vendors.07e06f25e47d84889be1.js:535
emit @ client.ce4922dbe5e196557e47.js:46
submitForm @ vendors.07e06f25e47d84889be1.js:517
Rb @ vendors.07e06f25e47d84889be1.js:2184
Xb @ vendors.07e06f25e47d84889be1.js:2184
Yb @ vendors.07e06f25e47d84889be1.js:2332
Ze @ vendors.07e06f25e47d84889be1.js:2334
se @ vendors.07e06f25e47d84889be1.js:2341
(anonymous) @ vendors.07e06f25e47d84889be1.js:2429
Pe @ vendors.07e06f25e47d84889be1.js:3299
Nb @ vendors.07e06f25e47d84889be1.js:2362
jd @ vendors.07e06f25e47d84889be1.js:2362
yc @ vendors.07e06f25e47d84889be1.js:2283
hd @ vendors.07e06f25e47d84889be1.js:2268
t.unstable_runWithPriority @ client.ce4922dbe5e196557e47.js:113
gg @ vendors.07e06f25e47d84889be1.js:2472
Hb @ vendors.07e06f25e47d84889be1.js:3296
gd @ vendors.07e06f25e47d84889be1.js:2266

Thank you

Cyber-Root0 commented 3 months ago

@fmaniconereply Greetings, Were you able to solve the problem manually?

glo82145 commented 3 months ago

@adobe export issue to Jira project PWA

github-jira-sync-bot commented 3 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3267 is successfully created for this GitHub issue.

huykon commented 2 months ago

I'm facing with this issue image