Hello,
I have two questions about the logout via JS API.
1 - how can i logout using only the API.
2 - how can i make the user change presence to OFFLINE if the browser closes.
Best regards.
Herlander Pires
Hello,
I have two questions about the logout via JS API.
1 - how can i logout using only the API.
2 - how can i make the user change presence to OFFLINE if the browser closes.
Best regards.
Herlander Pires
Also, since you posted this in the JS SDK section, you can call the logout()
function on the ApiClient instance and it will redirect the user to the logout url.
Is it possible to use the logout() function without the redirect?
about the point 2
Using the api and not the purecloud website, the presence of the user don't change to OFFLINE.
Is it possible to set a timer of inactivity via API to make the user go OFFLINE?
Best Regards,
Herlander Pires
No, that's how the SDK is coded. However, all it's doing is clearing the persisted access token and redirecting the user to https://login.mypurecloud.com/logout. If you do the redirect yourself, the SDK will clear the persisted token on the next login attempt because the token won't be valid anymore. If you're not persisting the token, then that consideration is moot.
I misunderstood about the presence question. If you're not using the standard client, you must control the presence yourself; there is no process in PureCloud that you can attach to for setting the user to offline automatically.
Ok.
Thanks.
Best Regards,
Herlander Pires
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.