Skip to content

Commit

Permalink
updated sdk version and functionality of callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Jan 22, 2025
1 parent aa41bee commit 69f8a2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions publisher/standard/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
<link rel="shortcut icon" href="/images/favicon.png" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="<%- uid2BaseUrl %>/static/js/uid2-sdk-2.0.0.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
<script>
$(document).ready(() => {
let callbackCounter = 0;
Expand Down Expand Up @@ -40,9 +40,9 @@
updateGuiElements(undefined);

__uid2.init({
callback: onUid2IdentityUpdated,
baseUrl: "<%- uid2BaseUrl %>"
});
__uid2.callbacks.push(onUid2IdentityUpdated);
});
</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions publisher/standard/views/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
<title>UID2 Publisher Standard Integration Example Login Result</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
<link rel="shortcut icon" href="/images/favicon.png" />
<script src="<%- uid2BaseUrl %>/static/js/uid2-sdk-2.0.0.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
<script>
function onUid2IdentityUpdated(state) {
// can automatically redirect user to index page here
}

__uid2.init({
callback: onUid2IdentityUpdated,
baseUrl: "<%- uid2BaseUrl %>",
identity: <%- JSON.stringify(identity) %>
});
__uid2.callbacks.push(onUid2IdentityUpdated);
</script>
</head>
<body>
Expand Down

0 comments on commit 69f8a2d

Please sign in to comment.