Client id assigned to your application on https://developer.audiotool.com/applications.
Redirect URL after the user presses "Allow" on the consent screen. Must be the same URL this app is deployed at, and must be registered as a redirect URL for your application on https://developer.audiotool.com/applications.
The scope your app requires. Must be a subset of the scopes assigned to your application on https://developer.audiotool.com/applications. Scopes define which part of a user's account your app is allowed to access. If you change this value while already logged in, you will need to log out and log in again to get the new scope.
This function allows to let arbitrary users use your app by letting them login/logout using the audiotool accounts system.
Calling it will first return the current authentication status of the user in this tab.
If the status is logged in, you can continue initializing the rest of your app by passing it to the createAudiotoolClient function. If the status is logged out, you can show a button to let the user login.
This function should be called only once and early in the app. The status returned should be considered definite; the only way to change that is to call login/logout, which will refresh the page, and change the return value of this function.
Example
Register your application on https://developer.audiotool.com/applications, then call it like this:
See more detailed instructions at Login.