New to this. Is there a way to limit simultaneous logins for cognito using Aws Lambda Post-Authentication trigger?
Basically I want my app to only have 1 user account logged in at a time, if at any point the user logs into the account via another (new device) the app either stops them, or logs them out of previous sessions.
What would a function for this look like?