<?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: Trương Đình Chiến</title>
    <description>The latest articles on DEV Community by Trương Đình Chiến (@cucheng).</description>
    <link>https://dev.to/cucheng</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%2F643439%2F33ef0ed9-196f-4bc7-99bb-34e02e9d3a98.png</url>
      <title>DEV Community: Trương Đình Chiến</title>
      <link>https://dev.to/cucheng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cucheng"/>
    <language>en</language>
    <item>
      <title>Should revoke refress token when get new access token?</title>
      <dc:creator>Trương Đình Chiến</dc:creator>
      <pubDate>Mon, 06 Feb 2023 03:49:32 +0000</pubDate>
      <link>https://dev.to/cucheng/should-revoke-refress-token-when-get-new-access-token-4hl7</link>
      <guid>https://dev.to/cucheng/should-revoke-refress-token-when-get-new-access-token-4hl7</guid>
      <description>&lt;p&gt;I have API get new access token from refresh token but i wonder that: should revoke refresh token and generate new refresh token when getting new access.&lt;/p&gt;

&lt;p&gt;Case 1: api/refresh token =&amp;gt; {new_access_token,new_refresh_token} (refresh_token revoked)&lt;/p&gt;

&lt;p&gt;Case 2: api/refresh token =&amp;gt; {access_token} (refresh_token not revoke)&lt;/p&gt;

&lt;p&gt;What is bestpractive, im using Nestjs&lt;/p&gt;

</description>
      <category>aws</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How make redirect link like dev.to</title>
      <dc:creator>Trương Đình Chiến</dc:creator>
      <pubDate>Tue, 08 Jun 2021 06:48:13 +0000</pubDate>
      <link>https://dev.to/cucheng/how-make-redirect-link-like-dev-to-487m</link>
      <guid>https://dev.to/cucheng/how-make-redirect-link-like-dev-to-487m</guid>
      <description>&lt;p&gt;I want to build a blog by nextjs and strapi like dev.to.But i have a problem with slug not have an idea to fix it.&lt;br&gt;
With each article, I will create the path with the syntax: &lt;a href="https://domain.com/username/slug"&gt;https://domain.com/username/slug&lt;/a&gt; (it like dev.to).&lt;/p&gt;

&lt;p&gt;But a problem , when the user change username, the path will be changed together, this time new url will be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Old: &lt;a href="https://domain.com/username/slug"&gt;https://domain.com/username/slug&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;New: &lt;a href="https://domain.com/new_username/slug"&gt;https://domain.com/new_username/slug&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I want if users visit the old URL it be auto-redirect to the new url.&lt;br&gt;
At dev.to, I noticed every time change username then path field auto changed (i check by &lt;a href="https://dev.to/api/articles"&gt;https://dev.to/api/articles&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;How can do it? how can a designer database in this case?&lt;br&gt;
I no experience about this.I hope will be a little bit suggest from everybody. Thanks!&lt;/p&gt;

</description>
      <category>nextjs</category>
    </item>
    <item>
      <title>[Question] Make a blog with nextjs should be use mdx or remark-html</title>
      <dc:creator>Trương Đình Chiến</dc:creator>
      <pubDate>Fri, 04 Jun 2021 11:27:59 +0000</pubDate>
      <link>https://dev.to/cucheng/question-build-a-blog-with-nextjs-should-be-use-mdx-or-remark-html-4o2a</link>
      <guid>https://dev.to/cucheng/question-build-a-blog-with-nextjs-should-be-use-mdx-or-remark-html-4o2a</guid>
      <description>&lt;p&gt;I want build a blog by nextjs framework.But I confusing should be use lib to parser markdown content.&lt;br&gt;
I see have two lib, this is remake-html and mdx.&lt;/p&gt;

&lt;h2&gt;
  
  
  So
&lt;/h2&gt;

&lt;p&gt;What is best choise.I want make a blog like &lt;strong&gt;Dev.to&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t6h0CcJF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ef4x9nuf94jzhqite519.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t6h0CcJF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ef4x9nuf94jzhqite519.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
