Implementing Talla's Customer Assist Widget
The Talla Widget provides one-click access to Talla. It allows you to create a button or link on your Customer facing portal that gives access to Talla.
You need to authenticate by calling Talla.init with a JWT token, that token should include the following attributes: first_name, last_name, email, user_id, nickname and timezone. Talla will use this data to identify users and user interactions across sessions.
How to Generate JWT Tokens Containing Your Attributes
JSON Web Token (JWT) is an open standard ( RFC 7519) for transmitting JSON objects in a secure and compact way. The information in the JSON object can be verified because it is digitally signed with a secret. For the purpose of authenticating the Talla Beacon, the JWT should be signed using a secret value provided by Talla, and contain the needed identification attributes (first_name, last_name, email, user_id, nickname and timezone) in encoded form.
More details and many open source implementations for the JWT standard can be found at ( https://jwt.io). The site includes instructions for downloading and installing the necessary libraries, gems, or packages in Java, Go, JS, Python, Ruby and other languages, as well as links to their repositories on GitHub. Most of these repositories also contain their own documentation and example code for generating JWT tokens and using them in a web app.
Note: `exp` expiration date is in unix timestamp