From 6a3060e012a25c641600e69acaec721e4afc1fb0 Mon Sep 17 00:00:00 2001 From: Shreya Sarker Date: Tue, 9 May 2023 14:40:50 +0600 Subject: [PATCH] Removed Unnecessary File from Utils --- socialuxe_frontend/src/utils/tokenHelper.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 socialuxe_frontend/src/utils/tokenHelper.js diff --git a/socialuxe_frontend/src/utils/tokenHelper.js b/socialuxe_frontend/src/utils/tokenHelper.js deleted file mode 100644 index f492b9a..0000000 --- a/socialuxe_frontend/src/utils/tokenHelper.js +++ /dev/null @@ -1,14 +0,0 @@ -import Cookie from 'js-cookie'; -import { v4 as uuid } from 'uuid'; - -const cookieName = process.env.REACT_APP_COOKIE_NAME; -const encryptionToken = Cookie.get(cookieName) ? Cookie.get(cookieName) : uuid(); - -const tokenHelper = () => { - if(!Cookie.get(cookieName)) { - Cookie.set(cookieName, encryptionToken, { secure: true, expires: 180 }); - } - return {encryptionToken}; -}; - -export default tokenHelper; \ No newline at end of file