Cookies seems to be an elegant way of tackling this problem to me. You can parse the cookies during SSR to generate the correct theme. As long as the cookie is not http-only, client side should also have access to that cookie, also able to change it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cookies seems to be an elegant way of tackling this problem to me. You can parse the cookies during SSR to generate the correct theme. As long as the cookie is not http-only, client side should also have access to that cookie, also able to change it.