Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<div id="webchat" role="main"></div>
<script src="jso.js"></script>
<script src=""></script>
{% if user %}
var config = {
client_id: "b31-aced-b61e18a4f68a", //The client id that was generated when registering the bot app in AD.
redirect_uri: "<portal_url>", //Your portal home page url
authorization: "<portal_url>/_services/auth/authorize",
debug: false //set to "true" for any troubleshooting. This will print additional logs on the console.
let client = new jso.JSO(config);
var checkedToken = client.checkToken();
var accessToken;
var opts = {};
.then(function (token) {
accessToken = token.token;
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment