Skip to content

1.1.0

Compare
Choose a tag to compare
@jkintscher jkintscher released this 26 Jan 23:23
· 49 commits to master since this release

This release adds two new features:

  1. 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.
  2. TiAuth.API_URL = ''; and TiAuth.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 for TiAuth to work (semantic exceptions will be thrown if you forgot to set them properly). As long as ti-auth.js is loaded early in your index.html you can even set these values in an external configuration file. Just make sure these values are set before calling TiAuth.initialize();.