Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #371 from rvitmnotes/patch-1
Browse files Browse the repository at this point in the history
Update authentication-server.phtml
  • Loading branch information
eldadfux authored Jun 2, 2023
2 parents e1963d3 + f537036 commit cc0558e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/docs/authentication-server.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ client
<h2><a href="/docs/authentication-server#when-to-use" id="when-to-use">When Should I Use JWT Auth?</a></h2>
<p>JWT auth is useful when you need your backend app's Server SDK to be restricted by the same set of permissions.</p>

<p>If your backend app's Server SDK is using an <a href="/docs/keys">API key</a>, it will fetch <b>all resources</b> reguardless of permissions. This means the Server SDK might fetch files and documents your user should not be able to see, which is not helpful when you need to act on behalf of a user.</p>
<p>If your backend app's Server SDK is using an <a href="/docs/keys">API key</a>, it will fetch <b>all resources</b> regardless of permissions. This means the Server SDK might fetch files and documents your user should not be able to see, which is not helpful when you need to act on behalf of a user.</p>

<p>If your backend app's Server SDK is using a <b>JWT</b>, it will only fetch resources your user has permissions to access.</p>

Expand Down Expand Up @@ -592,7 +592,7 @@ client
</li>
</ul>

<p>This will return every document reguardless of permissions, which could lead to privacy and security problems.</p>
<p>This will return every document regardless of permissions, which could lead to privacy and security problems.</p>

<div class="ide">
<pre class="line-numbers"><code class="prism language-javascript" data-prism>{
Expand Down Expand Up @@ -635,4 +635,4 @@ client
}</code></pre>
</div>

<p>If you're integrating existing backend services with Appwrite or adding backend endpoints to perform more complex logic, JWT authentication helps them behave similarly to actual Appwrite endpoints.</p>
<p>If you're integrating existing backend services with Appwrite or adding backend endpoints to perform more complex logic, JWT authentication helps them behave similarly to actual Appwrite endpoints.</p>

0 comments on commit cc0558e

Please sign in to comment.