I am creating an application in which you can create API tokens just like PAT tokens in github. I want to show them just once. For showing them I am using a Modal component. How can I trigger the modal to show token details once the api request for generating token is completed.