Releases: travel-intelligence/ti-auth.js
Releases · travel-intelligence/ti-auth.js
1.1.1
1.1.0
This release adds two new features:
TiAuth.signout();
to delete the auth token from memory and take the user back to the Dashboard for authorization. Just note that, if the user is still correctly signed in to the Dashboard, this will take them back to your module. It’s a first version of a signout with as much functionality as is currently supported by the Dashboard. Consider using this when you receive a 40x response from the API and need a way to manually safeguard against invalid access to your application in a long-lived session.TiAuth.API_URL = '';
andTiAuth.DASHBOARD_URL = '';
as an interface to configure the other components of the new modular TI Platform with. Both of these values need to be set to the appropriate URLs in order forTiAuth
to work (semantic exceptions will be thrown if you forgot to set them properly). As long asti-auth.js
is loaded early in yourindex.html
you can even set these values in an external configuration file. Just make sure these values are set before callingTiAuth.initialize();
.
1.0.0
Initial release with all basic functionality. It’s still missing essential configuration interfaces but those can be overwritten manually for now, if needs be.