New JavaScript Callbacks
We've added an additional 2 callbacks for JavaScript API.
- Get the user token of the logged in user.
- Trigger a callback after a user logs in successfully.
Read more here, or see below.
getUserToken
Gets the token of the logged in user. Can be usedful if systematically triggering page/user API calls and requires the logged in user token.
var userToken = TB.getUserToken();
console.log(userToken);
Get User after successful login
Callback after a user logs in successfully to the app. Be sure the component id matches the login components ID.
TB.render('component_4-login_success', function(data) {
console.log(data)
});
We'd love to hear your feedback.