Function isLocalStorageAndCookieTokenIsSame

  • Checks if token cookie and localstorage token is the same c

    Returns boolean

    true if these two are the same.

    if (isLocalStorageAndCookieTokenIsSame()) {
    console.log("Cookie and localstorage are the same.");
    } else {
    console.log("Cookie and localstorage are not same.");
    }