Created
June 25, 2019 02:00
-
-
Save z3ndaron/4fc432608f148c7ca37cb07af645ac03 to your computer and use it in GitHub Desktop.
Re-authenticate using jwtFn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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