Skip to content

Instantly share code, notes, and snippets.

@z3ndaron
Created June 25, 2019 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z3ndaron/4fc432608f148c7ca37cb07af645ac03 to your computer and use it in GitHub Desktop.
Save z3ndaron/4fc432608f148c7ca37cb07af645ac03 to your computer and use it in GitHub Desktop.
Re-authenticate using jwtFn
<script type="text/javascript">
window.zESettings = {
webWidget: {
authenticate: {
jwtFn: function(<callback>) { // for help center authentication
// Fetch your jwt token and then call our supplied callback.
callback('YOUR_JWT_TOKEN');
},
chat: {
jwtFn: function(<callback>) { // for chat authentication
// Fetch your jwt token and then call our supplied callback.
callback('YOUR_JWT_TOKEN');
}
}
}
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment