From 795639119bde9dc53803695bd3c07f10bd4c9e70 Mon Sep 17 00:00:00 2001 From: krishna Date: Mon, 3 Jul 2017 18:34:44 +0530 Subject: [PATCH] feat/no_local_key_trace: remove local storage Remove local storage to ensure the keys are not stored locally --- email_app/app/utils/app_utils.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/email_app/app/utils/app_utils.js b/email_app/app/utils/app_utils.js index fc424d9..e7a67eb 100644 --- a/email_app/app/utils/app_utils.js +++ b/email_app/app/utils/app_utils.js @@ -5,20 +5,22 @@ import { CONSTANTS } from '../constants'; import sodium from 'libsodium-wrappers'; export const getAuthData = () => { - let authData = window.JSON.parse( - window.localStorage.getItem(CONSTANTS.LOCAL_AUTH_DATA_KEY) - ); - return authData; + // let authData = window.JSON.parse( + // window.localStorage.getItem(CONSTANTS.LOCAL_AUTH_DATA_KEY) + // ); + // return authData; + return; }; export const saveAuthData = (authData) => { - return window.localStorage.setItem(CONSTANTS.LOCAL_AUTH_DATA_KEY, - window.JSON.stringify(authData) - ); + return; + // window.localStorage.setItem(CONSTANTS.LOCAL_AUTH_DATA_KEY, + // window.JSON.stringify(authData) + // ); }; export const clearAuthData = () => { - window.localStorage.removeItem(CONSTANTS.LOCAL_AUTH_DATA_KEY); + // window.localStorage.removeItem(CONSTANTS.LOCAL_AUTH_DATA_KEY); }; export const genServiceInfo = (emailId) => {