In those cases, we need an immutable, valid state corresponding to the authenticated user to compare against the global object used by our views. This read-only state can be achieved using a closure as previously discussed. This does slightly increase the complexity of the authentication algorithm, as the client must now compare the two states before checking checking for the required authentication parameter.