Overview
The Dictation SDK uses a helper calledSukiAuthManager from the @suki-sdk/core package. You give it the partner ID and partner token Suki assigned to your app. You create this helper once, then hand it to DictationClient in JavaScript or to DictationProvider in React.
After sign-in works, Suki can show the dictation experience (the screen users talk to) inside your page. The helper also renews access when it expires. If the ID or token is wrong, or sign-in never finishes, that dictation screen will not appear.
Prerequisites
Before you set upSukiAuthManager, you must have:
- Partner ID (the
partnerIdvalue): Suki gives you this when you complete Partner onboarding. - Partner token (the
partnerTokenvalue): The access value your program uses for this SDK. Your Suki contact explains how you get it and what it looks like.
Use SukiAuthManager for authentication
Create the helper when your app already knowspartnerId and partnerToken by running the following code:
JavaScript
providerSpecialty, see Specialties.
What SukiAuthManager does
- Checks your settings before dictation tries to open.
- Signs in to Suki’s platform with your partner details.
- Renews access when the SDK needs a fresh session.
- Lets Suki’s hosted dictation UI run with the right permissions.
If
autoRegister is on, you may need extra provider metadata. Check your package README or ask your Suki contact.Sign in later instead of on create
You can createSukiAuthManager first and call login() when your app is ready, instead of loginOnInitialize: true. Use whatever pattern your installed SDK version supports.