this is for holding javascript data
Alec Aivazis edited How_do_we_store_the__.html
over 8 years ago
Commit id: ee6526fa2998c72f7842a2ae0f06e55e957be9cc
deletions | additions
diff --git a/How_do_we_store_the__.html b/How_do_we_store_the__.html
index c5e65a1..a854efb 100644
--- a/How_do_we_store_the__.html
+++ b/How_do_we_store_the__.html
...
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