Skip to content

Commit 52a2e4a

Browse files
committed
clarify naming of the remote auth s3 payload
1 parent e6f117f commit 52a2e4a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/backend/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export default {
3131
});
3232
}
3333

34-
const ssoScript = generateDisqusSSO(user, env.DISQUS_SECRET_KEY, env.DISQUS_PUBLIC_KEY);
34+
const ssoPayload = generateDisqusSSO(user, env.DISQUS_SECRET_KEY, env.DISQUS_PUBLIC_KEY);
3535

3636
return new Response(JSON.stringify({
37-
sso: ssoScript
37+
sso: ssoPayload
3838
}), {
3939
headers: {
4040
'Content-Type': 'application/json',

packages/frontend-react/src/components/DisqusSSO.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DisqusSSO = () => {
3131
})
3232
.then(response => response.data.sso)
3333
.then(sso => {
34-
setLoginPayload(`Payload: ${sso.auth}`);
34+
setLoginPayload(`remoteAuthS3 payload: ${sso.auth}`);
3535
setLoginPublicKey(`Public Key: ${sso.pubKey}`);
3636
setLoginTestField(`Test Field: ${sso.test}`);
3737
setLoggedInStatus(true);

packages/frontend-vanilla/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h1>Disqus SSO Demo - Vanilla JavaScript</h1>
126126
data: JSON.stringify({ user: userData }),
127127
success: function(response) {
128128
$('#disqus_thread p').remove();
129-
$("<p></p>").text("payload: ").appendTo("#disqus_thread");
129+
$("<p></p>").text("remote_auth_s3 payload: ").appendTo("#disqus_thread");
130130
$("<p></p>").text(response.sso.auth).appendTo("#disqus_thread");
131131
$("<p></p>").text("public key: ").appendTo("#disqus_thread");
132132
$("<p></p>").text(response.sso.pubKey).appendTo("#disqus_thread");

0 commit comments

Comments
 (0)