loopback4-microservice-catalog
loopback4-microservice-catalog copied to clipboard
Cognito logout featur required
Is your feature request related to a problem? Please describe. When users logged in through Cognito need to log out, we face an issue as the current logout API only supports logging out users who have logged in using internal authentication, not through any other OAuth like Cognito.
The problem arises when a user logs in and then logs out of the system, but the session is still active at the Cognito end. This can cause confusion if the user is not correctly logged out from all authentication platforms, such as Cognito and the internal database. The user may not experience a normal login flow, which can lead to confusion.
Describe the solution you'd like There should be cognito logout API available which will logout current user session on cognito platform as well. This API should be independent of any other system should be use only to logout from cognito.
As making it independent will help user to write his own BL around it. Or handling other scenarios as well.
Describe alternatives you've considered use cognito submethod provided to logout or use cognito API that accept current use refresh and access token to logout