Display plain text token in modal after creation

I have a model which generates a Sanctum token after the model's created event fires. However, I want to show the plain text token to the user in a modal. Is there any way to do this currently?
Was this page helpful?