You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to discuss potentially changing the type structure of ECommerceProvider so that the session is passed into it. I'm working on POCing with Salesforce Commerce Cloud, and they provider a series of APIs that require the app to generate an access token per session (think guest customers).
This API also requires that the app maintain a refresh token, and handle the use case where the access token expires. I wasnt quite sure where to put all of this logic, and it feels like it belongs in the provider implementation.
If there's a better Remix way of doing this, let me know.
The text was updated successfully, but these errors were encountered:
Hello!
I wanted to discuss potentially changing the type structure of
ECommerceProvider
so that the session is passed into it. I'm working on POCing with Salesforce Commerce Cloud, and they provider a series of APIs that require the app to generate an access token per session (think guest customers).This API also requires that the app maintain a refresh token, and handle the use case where the access token expires. I wasnt quite sure where to put all of this logic, and it feels like it belongs in the provider implementation.
If there's a better Remix way of doing this, let me know.
The text was updated successfully, but these errors were encountered: