Set a Countdown clock to wait for an SMS Code in Vaadin Flow

Hi all, I’m starting with Vaadin Flow and I would like to set a countdown clock (usually 30 seconds) to wait for a SMS code to complete a Login. How do you know how to do that in Vaadin Flow?
Thanks for your responses.

Hi! It’s not a matter of Flow itself, it’s more Java generic question - please have a look on tutorials on Java Timers like https://www.baeldung.com/java-timer-and-timertask or How to set a Timer in Java? - Stack Overflow.

If you want to update your UI async when code arrives please have a look on server push documentation https://vaadin.com/docs/latest/flow/advanced/server-push