I am using reactjs with nodejs and redux to authenticate and keep track of if user is authenticated or not (for routes). I am using aws cognito for user authentication.
What does the app do: it basically takes a file from user and uploads to s3 bucket.
What I want to accomplish: I want to restrict the user from opening a 2nd tab (in chrome for example) and logging in again. Currently I don't have a logout button, but if they refresh their current tab, they will be logged out and will have to log in again - reason for this is, we don't need to persist the login.
In addition to this, ideally we would like to restrict the user from opening say another browser and logging in.
Is there way to restrict this?
If you need only 1 session to be active of one particular user.
Another approach:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.