Suvash - Hi team, when we invoke the SDK init()...

Hi team, when we invoke the SDK init(), it creates a session in the ThoughtSpot cluster right?. One way to invalidate the session is to invoke the logout function. If not for logout, how long does the session last? Is there a way to control the session expiry time? Is there any documents around this? I couldn't find it in developer docs.
5 Replies
Suvash
SuvashOP5w ago
Furthermore, to add to this, does SDK deletes the existing session when the init() is invoked again?
utsav.kapoor
utsav.kapoor5w ago
session depends upon your auth scheme. can you please tell me which auth method do you use ?
Suvash
SuvashOP5w ago
for now its Basic. the response I get frm the api is -1 so it seems never for this one. which if fine for now for us.
utsav.kapoor
utsav.kapoor5w ago
Got it, for Basic it will be cookie validity which is set to 30 days for now. I would suggest migrating to Trusted Auth cookieless and then you can control the session duration based on the token
Suvash
SuvashOP5w ago
sweet. thank you @utsav.kapoor . yeah thats the future plan

Did you find this page helpful?