Invalid grant type error during token exchange #2783
-
I'm using the createCustomerAccountClient utility in my hydrogen store and cannot successfully exchange the refresh token for a new access token. This is the function that fails (taken directly from this repo). This is a problem because the error clears the session and the user shows as not logged in every hour (although going through the entire auth process again, they are automatically logged in again without having to enter the code). I am using a local version of hydrogen in order to debug but have not made any changes to the createCustomerAccountClient functionality besides some console logs. I get an unsupported_grant_type error:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Have you added a call for If you've added a call for it, could you paste that code here please as that may be part of the reason for the error you're seeing? |
Beta Was this translation helpful? Give feedback.
-
We identified and fixed the issue: #2788 The change is quite small, so if this is a blocking issue it should be possible to patch your local version of Hydrogen until this change becomes available in a release convenient for you. |
Beta Was this translation helpful? Give feedback.
We identified and fixed the issue: #2788
The change is quite small, so if this is a blocking issue it should be possible to patch your local version of Hydrogen until this change becomes available in a release convenient for you.