I am working on a subscription based platform, where user buys a subscription plan and then he/she can get access to the content.
Tech Stack: React in Frontend and Django REST Framework in Backend
I want to find a way to prevent user login from multiple devices or multiple tabs from a browser. There should be one session per user.
I have researched about it but could not find anything suitable. Some are using session authentication scheme to store the user session and adding middlewares and prevent multiple logins.
But i am using JWT token Authentication scheme. I am storing JWT token in front end.
How should i implement in such case which not having session authentication? Any leads?