Why not Basic Auth everytime instead JWT?
<p>I'm in the middle of writing a <em>RESTFUL API</em> in Hapi, I could not figure out API authentication methodologies.</p>

<p>Assuming we're using SSL/TLS with HTTP/1.1, why do we need something like JSON Web Token (JWT), where we already have <strong>HTTP Basic Authentication</strong>. We may protect every endpoint with <strong>HTTP Basic Auth</strong>, so we wouldn't even need login routes like <code>'/login'</code>.</p>

<p>So, what's the point of those authentication schemes, OAuth's and JWT?</p>

<p>Thank you.</p>