Hi,
I am using below code to logout users
const client = platformClient.ApiClient.instance
const tokensApiInstance = new platformClient.TokensApi()
tokensApiInstance.deleteToken(user.id)
The users are being logged out. But GenesysCloud is automatically logging users back in immediately
Hi Praveen_Palnati,
I found some similar posts relating to your question, you can check out these two following previous posts for documentations and resources to logout users via API. Hope it helps. Also this forum is for customers to ask questions, if you are a Genesys employee, please ask questions in the corresponding chat room.
I am using the following code to logout user.
TokensApi tokensApi = new TokensApi(apiClient);
String result = tokensApi.deleteMe();
after logout, I am redirecting user to login page(https://login.mypurecloud.com ), where in user gets logged-in automatically.
I want the user to login again after logout. Its not happening unless user clears the cache of purecloud.
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
Thanks
Thanks for the links.
To share some more details, I have created a NodeJS app to logout all users in a division.
I'll reach out internally.
Thanks!
system
Closed
November 4, 2021, 12:45pm
4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.