diff --git a/frontend/src/components/getCookieToken.js b/frontend/src/components/getCookieToken.js deleted file mode 100644 index 87568ccb..00000000 --- a/frontend/src/components/getCookieToken.js +++ /dev/null @@ -1,15 +0,0 @@ -function getCookie(name) { - let cookieValue = null; - if (document.cookie && document.cookie !== '') { - const cookies = document.cookie.split(';'); - for (let i = 0; i < cookies.length; i++) { - const cookie = cookies[i].trim(); - // Does this cookie string begin with the name we want? - if (cookie.substring(0, name.length + 1) === (name + '=')) { - cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); - break; - } - } - } - return cookieValue; -} \ No newline at end of file