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
You could listen using
onAuthExpire
on any react component. https://developers.thoughtspot.com/docs/Enumeration_EmbedEvent#_authexpireRight but what do I do to stop the session from expiring, or at least to programmatically renew it??
Any update here? @ashish
We have
autoLogin
property in the init
which will reauth automatically.
Set autoLogin: true
https://developers.thoughtspot.com/docs/Interface_EmbedConfig#_autologin@ashish We are already passing that value but not seeing the expected behavior (obvs, otherwise we wouldn't be asking).
trustedauth + autoLogin not refetching the token on expiry ?
I don't understand this reply
We are passing this:
Bascially, on authExpiry if
autoLogin: true
.. it calls the getAuthToken
callback passed
to get the token againWe are not seeing that behavior, our users are getting the logged out behavior.
If you are using cookieless, then you can also control the expiration of the token issued to you.
Yes, we are also doing that but we want both.
Could be a bug, tagging @Mohamed Abdulla @Aniruddha to debug further.
@billsaysthis Is the
getAuthToken
gettting called ? And is it issuiing a new token ?I don't know, it doesn't happen until after 3-4 hours of inactivity
@Ritesh can we raise a support ticket for @billsaysthis and gather relevant info to triage further.
@billsaysthis checking to see if you were able create a support ticket.
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.
Sorry for the confusion. Can you please raise a support ticket.
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!
Apologies once again.