Alec Aivazis edited How_do_we_store_the__.html  over 8 years ago

Commit id: ee6526fa2998c72f7842a2ae0f06e55e957be9cc

deletions | additions      

       

How do we store the authentication data that we have retrieved?
Closures retrieved?
Closures  to the rescue! Create a function that is available globally in the success handler of the xhr request which will wrap the value of the data returned by the server in a read-only manner. The global scope of the closure makes the unencrypted authentication data readable by anyone who requires it

 it