<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Authentication on Mohit Dulani</title>
    <link>https://complete-dope.github.io/codex/tags/authentication/</link>
    <description>Recent content in Authentication on Mohit Dulani</description>
    <generator>Hugo -- 0.146.0</generator>
    <language>en</language>
    <lastBuildDate>Thu, 06 Mar 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://complete-dope.github.io/codex/tags/authentication/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Learning Authentication</title>
      <link>https://complete-dope.github.io/codex/posts/authentication-and-authorization/</link>
      <pubDate>Thu, 06 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://complete-dope.github.io/codex/posts/authentication-and-authorization/</guid>
      <description>&lt;h1 id=&#34;learning-authentication-and-authorization&#34;&gt;Learning Authentication and Authorization&lt;/h1&gt;
&lt;p&gt;HTTP in itself is stateless that is each request is considered as a seperate new request and with no previous baggage or memory.&lt;/p&gt;
&lt;p&gt;3 basic terms :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Session&lt;/li&gt;
&lt;li&gt;JWT&lt;/li&gt;
&lt;li&gt;Cookies&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;JWT : JSON web token, 64 bit cryptographic hashed token, has 3 parts seperated by &amp;lsquo;.&amp;rsquo;, those are &lt;code&gt;headers&lt;/code&gt;, &lt;code&gt;payload&lt;/code&gt;, and &lt;code&gt;server side secret-key&lt;/code&gt; , so if anyone tries to change any value in any of the fields the hash will change and will no longer remain valid and our server side secret wont be able to match it (uses minimum resources to validate, only a single secret string that can be stored in env also ) , this JWT can be stored in a cookie, local storage , memory etc&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
