I want to guarantee that the users of the app only have access to it on one device at a time. Therefore, I thought of ending all the existing user sessions when logging in and therefore revoking the existing access and refresh tokens.
I aim on that the devices/sessions who might be active in in the mean time are also logged out and need to sign in again.
How can I detect all the access tokens and revoke them on the server-side?
Or is there any better way to achieving this solution?
Thank´s!