This commit is contained in:
@@ -914,9 +914,8 @@
|
||||
|
||||
<div class="doc doc-contents first">
|
||||
|
||||
<p>Persistence-layer user model for MongoDB.</p>
|
||||
<hr />
|
||||
<h4 id="jwtlib.models.mongo--summary">Summary</h4>
|
||||
<h3 id="jwtlib.models.mongo--summary">Summary</h3>
|
||||
<p>Persistence-layer user model for MongoDB.</p>
|
||||
<p>This module defines the internal database representation of a user.
|
||||
It is used exclusively by the repository and persistence layers and
|
||||
must never be exposed directly to consumers.</p>
|
||||
@@ -980,10 +979,18 @@ must never be exposed directly to consumers.</p>
|
||||
<details class="notes" open>
|
||||
<summary>Notes</summary>
|
||||
<p><strong>Responsibilities:</strong></p>
|
||||
<div class="language-text highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><code>- Represents a user record as stored in the database. Includes sensitive fields and is strictly confined to the persistence layer.
|
||||
<div class="language-text highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
|
||||
<span class="normal">2</span>
|
||||
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><code>- Represents a user record as stored in the database. Includes
|
||||
sensitive fields and is strictly confined to the persistence
|
||||
layer.
|
||||
</code></pre></div></td></tr></table></div>
|
||||
<p><strong>Guarantees:</strong></p>
|
||||
<div class="language-text highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><code>- This model MUST NOT be returned from authentication APIs. Consumers should use `PublicUser` instead. Password verification is handled by the repository layer.
|
||||
<div class="language-text highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
|
||||
<span class="normal">2</span>
|
||||
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><code>- This model MUST NOT be returned from authentication APIs.
|
||||
Consumers should use `PublicUser` instead. Password verification
|
||||
is handled by the repository layer.
|
||||
</code></pre></div></td></tr></table></div>
|
||||
</details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user