Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Doc: Session auth should be using authData instead of inputData
Browse files Browse the repository at this point in the history
  • Loading branch information
eliangcs committed Jul 10, 2018
1 parent 237421e commit 68cea29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ const getSessionKey = (z, bundle) => {
method: 'POST',
url: 'https://example.com/api/accounts/login.json',
body: {
username: bundle.inputData.username,
password: bundle.inputData.password
username: bundle.authData.username,
password: bundle.authData.password
}
});

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,8 @@ <h3 id="session">Session</h3>
<span class="hljs-attr">method</span>: <span class="hljs-string">&apos;POST&apos;</span>,
<span class="hljs-attr">url</span>: <span class="hljs-string">&apos;https://example.com/api/accounts/login.json&apos;</span>,
<span class="hljs-attr">body</span>: {
<span class="hljs-attr">username</span>: bundle.inputData.username,
<span class="hljs-attr">password</span>: bundle.inputData.password
<span class="hljs-attr">username</span>: bundle.authData.username,
<span class="hljs-attr">password</span>: bundle.authData.password
}
});

Expand Down
4 changes: 2 additions & 2 deletions snippets/session-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const getSessionKey = (z, bundle) => {
method: 'POST',
url: 'https://example.com/api/accounts/login.json',
body: {
username: bundle.inputData.username,
password: bundle.inputData.password
username: bundle.authData.username,
password: bundle.authData.password
}
});

Expand Down

0 comments on commit 68cea29

Please sign in to comment.