Should return the current value of StateT. This method is called by TwinfinitySession.establish and TwinfinitySession.reEstablish before the browser redirected to the Open ID connect provider. The same value is then restored after TwinfinitySession has been successfully established.
A function that serializes StateT to a string such that it can be deserialized by deserialize
ApplicationState allows an application to recover its state StateT from before the Twinfinity session was established.