<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: alin</title>
    <description>The latest articles on DEV Community by alin (@alindebian).</description>
    <link>https://dev.to/alindebian</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F71545%2F89fa55fe-ae3f-438a-9d86-9a851545c1cb.png</url>
      <title>DEV Community: alin</title>
      <link>https://dev.to/alindebian</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alindebian"/>
    <language>en</language>
    <item>
      <title>How to get refresh token in Vite Vue 3</title>
      <dc:creator>alin</dc:creator>
      <pubDate>Mon, 04 Mar 2024 06:26:00 +0000</pubDate>
      <link>https://dev.to/alindebian/how-to-get-refresh-token-in-vite-vue-3-4946</link>
      <guid>https://dev.to/alindebian/how-to-get-refresh-token-in-vite-vue-3-4946</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script setup&amp;gt;

const accessrefresh = async () =&amp;gt; {
    axios.defaults.headers.common['Authorization'] = storeaccesstoken.accesstoken;
    await axios.create({withCredentials: true}).post("http://localhost:81/auth/refresh/")
        .then((response) =&amp;gt; {   axios.defaults.headers.common['Authorization'] = response.data.token;
            storeaccesstoken.stateAccessToken(response.data.token);
        })
        .catch((errors) =&amp;gt; {
            console.log("errors access refresh: ",errors);
            if(errors?.response?.data?.message==='error') {
                Swal.fire({
                title: "Error!",
                text: "Access denied!",
                icon: "error",
                confirmButtonText: "Log in please!"
              });
            }
            storeaccesstoken.stateAccessToken(null);
            storeaccesstoken.setStateUserFalse();
            router.push({ path: '/login' })
        });
};

onBeforeMount(() =&amp;gt; {
    window.addEventListener("beforeunload",accessrefresh());
})

&amp;lt;script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>vue</category>
      <category>node</category>
    </item>
    <item>
      <title>Answer: Eslint: How to disable “unexpected console statement” in Node.js and Vue.js?</title>
      <dc:creator>alin</dc:creator>
      <pubDate>Thu, 12 Dec 2019 18:39:20 +0000</pubDate>
      <link>https://dev.to/alindebian/answer-eslint-how-to-disable-unexpected-console-statement-in-node-js-3401</link>
      <guid>https://dev.to/alindebian/answer-eslint-how-to-disable-unexpected-console-statement-in-node-js-3401</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/34215526/eslint-how-to-disable-unexpected-console-statement-in-node-js/53333105#53333105" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Eslint: How to disable "unexpected console statement" in Node.js?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 16 '18&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/34215526/eslint-how-to-disable-unexpected-console-statement-in-node-js/53333105#53333105" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          151
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;For &lt;strong&gt;vue-cli 3&lt;/strong&gt; open &lt;code&gt;package.json&lt;/code&gt; and under section &lt;code&gt;eslintConfig&lt;/code&gt; put &lt;code&gt;no-console&lt;/code&gt; under &lt;code&gt;rules&lt;/code&gt; and restart dev server (&lt;code&gt;npm run serve&lt;/code&gt; or &lt;code&gt;yarn serve&lt;/code&gt;)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;...
"eslintConfig": {
    ...
    "rules": {
      "no-console": "off"
    },
    ...
&lt;/code&gt;&lt;/pre&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/34215526/eslint-how-to-disable-unexpected-console-statement-in-node-js/53333105#53333105" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
