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
PWA Kit could support an "Agent Login" mode that interact with SLAS Trusted Agent on Behalf Of. This mode would allow customer agents to shop the store on behalf of a customer, helping them complete their checkout.
Trusted Agent logins do not have a refresh token, so custom logic is required around authorization.
<CommerceApiProvider> accepts a fetchedToken prop which bypasses the regular authentication flow.
If you want to make this work today, you'd like need to alter the <AppConfig> component a conditionals to detect the agent login flow.
I'm not entirely sure how you'd handle the expiry of the token. You might need some custom logic that would detect that the token is expired and reload the app through the agent flow.
The text was updated successfully, but these errors were encountered:
PWA Kit could support an "Agent Login" mode that interact with SLAS Trusted Agent on Behalf Of. This mode would allow customer agents to shop the store on behalf of a customer, helping them complete their checkout.
Trusted Agent logins do not have a refresh token, so custom logic is required around authorization.
<CommerceApiProvider>
accepts afetchedToken
prop which bypasses the regular authentication flow.If you want to make this work today, you'd like need to alter the
<AppConfig>
component a conditionals to detect the agent login flow.I'm not entirely sure how you'd handle the expiry of the token. You might need some custom logic that would detect that the token is expired and reload the app through the agent flow.
The text was updated successfully, but these errors were encountered: