Skip to content

Commit 0ee8f6d

Browse files
authored
Update cwc_auth_1.html
1 parent 9a62a5d commit 0ee8f6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

npachpande/cwc/sdb3/cwc_auth_1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
<script type='text/javascript'>
99
async function fetchAndSetIdentityToken() {
10-
const identityToken = await fetchIdentityToken();
10+
const identityTokenData = await fetchIdentityToken();
1111
embeddedservice_bootstrap.userVerificationAPI.setIdentityToken({
1212
identityTokenType: "JWT",
13-
identityToken: identityToken
13+
identityToken: identityTokenData.accessToken
1414
});
1515
}
1616

1717
function fetchIdentityToken() {
1818
const porticoURL = "https://portico.sfproxy.controltelemetry-s.aws-esvc1-useast2.aws.sfdc.cl/api/v1/miaw/getJwtToken?issuer=testIssuer&subject=testSubject@cwc.com&jwtExpInSeconds=600&keyId=5f103f1b-ee38-404c-ac94-83c427764813";
1919
return fetch(porticoURL).then(function(response) {
20-
return response.json().accessToken;
20+
return response.json();
2121
});
2222
}
2323

0 commit comments

Comments
 (0)