Skip to content

Commit

Permalink
removed unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavanakarwade committed Dec 6, 2024
1 parent b302063 commit 532c1ac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/api/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,13 @@ export const setToLocalStorage = async (key: string, value: any) =>{
export const getFromLocalStorage = async (key: string) => {
try {
const encryptedValue = localStorage.getItem(key);
console.log(`Retrieved from localStorage [${key}]:`, encryptedValue);

if (!encryptedValue) {
console.warn(`No value found in localStorage for key: ${key}`);
return null;
}

const decryptedValue = encryptedValue ? decryptData(encryptedValue) : '';
console.log(`Decrypted value for [${key}]:`, decryptedValue);

return decryptedValue;
} catch (error) {
Expand Down

0 comments on commit 532c1ac

Please sign in to comment.