Ashutosh Patil - Hello, We are using - authType...

Hello, We are using - authType: AuthType.TrustedAuthToken in the SpotterEmbed And passed "uername" property to init method, but added userName is not displaying on spotter Example : init({ thoughtSpotHost: <Our URL>, authType: AuthType.TrustedAuthToken, autoLogin: true, getAuthToken: () => Promise.resolve(data.token), username: 'Good', }) "Good" is not appending in the place of userName. Can anyone please tell me, what is the reason that userName is not getting override. Or any alternative solution? Note : "Good" is just for an example, we want to pass dynamic userName to "usename:" field.
4 Replies
Mourya Balabhadra
@shikharTS @Justin Mathew can you take a look
Ruchi Anand
Ruchi Anand2mo ago
@Ashutosh Patil username in init method is for authentication. where exactly are you expecting the username to be reflected in Spotter? Are you referring to the displayed initial in the spotter input avatar or something else?
Ashutosh Patil
Ashutosh PatilOP2mo ago
Yes @Ruchi Anand We need to display initital at Avtar as well as at the place of username displaying during doing chat in spotter
yuichirio_ha
yuichirio_ha2mo ago
In trustedAuth and cookiless that will be based on the token you are passing that will contain the username authenticating. You can check base64 decode and first part is the username. Create token corresponding to the user you want to see in the embed. Thanks. @Ashutosh Patil

Did you find this page helpful?