Is there any documentation for the

Is there any documentation for the AuthExpire callback in React? Specifically, can I use this to somehow tell TS to refresh the auth?
18 Replies
ashish
ashish2y ago
You could listen using onAuthExpire on any react component. https://developers.thoughtspot.com/docs/Enumeration_EmbedEvent#_authexpire
billsaysthis
billsaysthisOP2y ago
Right but what do I do to stop the session from expiring, or at least to programmatically renew it?? Any update here? @ashish
ashish
ashish2y ago
We have autoLogin property in the init which will reauth automatically. Set autoLogin: true https://developers.thoughtspot.com/docs/Interface_EmbedConfig#_autologin
billsaysthis
billsaysthisOP2y ago
@ashish We are already passing that value but not seeing the expected behavior (obvs, otherwise we wouldn't be asking).
ashish
ashish2y ago
trustedauth + autoLogin not refetching the token on expiry ?
billsaysthis
billsaysthisOP2y ago
I don't understand this reply We are passing this:
authType: AuthType.TrustedAuthTokenCookieless,
autoLogin: true,
authType: AuthType.TrustedAuthTokenCookieless,
autoLogin: true,
ashish
ashish2y ago
Bascially, on authExpiry if autoLogin: true .. it calls the getAuthToken callback passed to get the token again
billsaysthis
billsaysthisOP2y ago
We are not seeing that behavior, our users are getting the logged out behavior.
ashish
ashish2y ago
If you are using cookieless, then you can also control the expiration of the token issued to you.
billsaysthis
billsaysthisOP2y ago
Yes, we are also doing that but we want both.
ashish
ashish2y ago
Could be a bug, tagging @Mohamed Abdulla @Aniruddha to debug further. @billsaysthis Is the getAuthToken gettting called ? And is it issuiing a new token ?
billsaysthis
billsaysthisOP2y ago
I don't know, it doesn't happen until after 3-4 hours of inactivity
Mohamed Abdulla
@Ritesh can we raise a support ticket for @billsaysthis and gather relevant info to triage further.
tseadmin
tseadmin2y ago
@billsaysthis checking to see if you were able create a support ticket.
billsaysthis
billsaysthisOP2y ago
The message above, from last week, doesn't say I should create a support ticket. Mohamed said "we" so I assumed he or Ritesh would do that.
tseadmin
tseadmin2y ago
Sorry for the confusion. Can you please raise a support ticket.
billsaysthis
billsaysthisOP2y ago
Done, https://community.thoughtspot.com/s/case/5003n00002juFUIAA2/users-are-being-logged-out-after-15-minutes. But this is ridiculous to only be asked to do this after four days!
tseadmin
tseadmin2y ago
Apologies once again.

Did you find this page helpful?