Glaring security hole with the code here means that if anyone compromises a single active token, they could remain logged in forever, even if the user changed their password or "logged out".
To fix this, refresh tokens must be implemented, which can be revoked.