If you are using our Double opt-in feature in order for users to confirm their email address after registration, you are able to check if a user has confirmed it or not by using the following JavaScript snippet:
tp.pianoId.getUser()
And in the response, there will be a parameter confirmed with the values either true if the user has confirmed their email address or false if not.