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