session(), playback(), form(), and scheduler(), it loads automatically — you do not declare it in the modules array.
Its strategies live on the Proview.auth namespace and are passed as credential on Proview.init():
modules array.
Strategies
DefaultAuthStrategy
If you do not pass credential, the SDK falls back to DefaultAuthStrategy. These two are equivalent:
TokenAuthStrategy
Takes a token your backend obtained from the Talview token endpoint:
Where the token comes from. Talview provides the token API as part of your integration — the endpoint and the request format. Contact Talview if you have not received these details.
FirebaseAuthStrategy
For applications already using Firebase Authentication:
Choosing a strategy
Handling tokens safely
- Request the token from your backend, not the browser. Your server calls the Talview token endpoint and passes the result to the page, so the endpoint’s own credential never reaches the browser.
- Do your own authorization check first. Talview issues the token; deciding whether this user should have it is your application’s job.
- Treat it like a session credential. Keep it out of URLs, logs, and analytics payloads. Never ship a shared long-lived token to the browser.
Troubleshooting
A rejected or insufficient credential surfaces through the global error handler asAUTH_ERROR or UNAUTHORIZED. See the Error Reference for the full list, and Troubleshooting → Authentication failures for diagnosis.
