Greetings y’all!
We’re trying to implement a chat system within our app, without exposing the APIKey on the client-side.
We’re able to generate a get an accessToken from the server-side by calling
- /api/v3/authentication/token?userId=${userID}
- /api/v3/sessions
The thing is, front-end wise, in order to use the typescript-SDK, we need to have an active client instance, which can only be created using an API Key.
- We tried passing an empty APIkey string and set the accessToken value (Didn’t workout)
- Using the createAuthToken (No active client instance)
How may we proceed? Any insights are welcome!
We’ve looked in the Security-Settings but the Getting-Started part doesn’t tackle how to use accessToken with the SDK, without an APIKey
We noticed there’s also this OpenAPI Spec. Does it mean that, once we start using the secure-mode, the SDK becomes obsolete and we would have to wrap the API/generate an SDK on our own?