Closed koulomesh closed 2 months ago
Hey @koulomesh, multipass tokens typically have a short TTL. Are you providing a TTL when you generate the access token?
It's likely that you will need to regenerate a new token if the first has expired. When you reload checkout, are you calling present with a checkout URL? or the multipass URL?
@markmur I am calling present with a new multipass url obtained from the same cart checkout Url.
See this documentation:
The multipass token is only valid for 15 minutes and each token can only be used once
This means, for 15 mins, i have to use the same multipass url? or i can use a new multipass url also generated from same cartUrl ?
This means that you have 15 mins to hit the multipass URL and once you do the token will expire. If your customers close the checkout and reopen it, you will likely need to recreate a new multipass URL to login.
If you're using preloading, the checkout view will be cached for 5 minutes, meaning it will maintain the state across opens/closes during that time. If not, you will need to regenerate the multipass URL each time you present.
I am doing the same, generating a new multipass URL everytime the user presents the checkout sheet. Still, the login issue persists. In one session, it is auto logged in, then again it shows website's login route before proceeding ahead.
@koulomesh an incident was resolved relating to multipass logouts. Can you still reproduce?
Yeah, it is working fine now. But sometimes, just empty screen shows up in the bottomsheet.
I suspect the checkout has failed to load in this case. Are you handling the error from the event listener?
Do you have any logs or videos you could share?
Well, its not happening everytime. And in the scenario where it happens, nothing gets logged from the error event listener.
Error handling has been greatly improved in 3.0.0
. If there's a specific issue you're facing after upgrading, please open a new issue. Thanks
While checking out from the cart, the process we follow is creating a multipass link in which the input is checkoutUrl from cart storefront graphql request. When we open that url inside the checkout sheet, it works fine. The cart gets associated with the checkout. But on subsequent loads, it asks for web login inside the sheet.