aws-solutions / virtual-waiting-room-on-aws

Virtual Waiting Room on AWS solution helps absorb and control incoming user requests to your website during an unusually large burst of traffic, usually due to a large-scale event.
Apache License 2.0
92 stars 28 forks source link

Token Expiry & Serving Counter Enhancement #265

Closed tunlinphyo closed 3 months ago

tunlinphyo commented 3 months ago

Request I'm seeking a method to invalidate a token before its designated expiration time.

My Store Features

Problem Even after a token is cleared from a user, the VWR system continues to mark it as active due to the fixed expiration time.

bassemwanis commented 3 months ago

Thank you @tunlinphyo for requesting this enhancement. Regarding your suggestion to invalidate a token before its designated expiration time, you can achieve that by using the /update_session private endpoint after the checkout logic. Session status is denoted by an integer (0 indicates active, 1 indicates completed, and -1 indicates abandoned). For more details on /update_session private API, refer to our developer guide here.

tunlinphyo commented 3 months ago

Thank you, @bassemwanis, for your kind response. I apologize for my lack of knowledge.