mad1 - Hi Team, How can i avoid TS embed Dashbo...

Hi Team, How can i avoid TS embed Dashboard session timeout error, as I go back to the page after a while.
No description
6 Replies
Justin Mathew
Justin Mathew4mo ago
hi @mad1 what authentication method are you using here ?
R19
R19OP4mo ago
Hi @Justin Mathew , we are using Trusted authentication, using secret key to generate full access token
shikharTS
shikharTS4mo ago
You can use autoLogin: true?
Justin Mathew
Justin Mathew4mo ago
@mad1 can you try authType: TrustedAuthCookieless
R19
R19OP4mo ago
You mean, just mention the AuthType : TrustedAuthToken to TrustedAuthCookieless, what difference would that make ? in the parameters do you what me to mention that ? Can you please elaborate on this
Justin Mathew
Justin Mathew4mo ago
can. you try
init({
// ...
authType: AuthType.TrustedAuthTokenCookieless,
autoLogin: true,
getAuthToken: () => {
return fetch('https://my-backend.app/ts-token')
.then((response) => response.json())
.then((data) => data.token);
}
init({
// ...
authType: AuthType.TrustedAuthTokenCookieless,
autoLogin: true,
getAuthToken: () => {
return fetch('https://my-backend.app/ts-token')
.then((response) => response.json())
.then((data) => data.token);
}

Did you find this page helpful?