AFAIK you are allowed to use cookies/localstorage as much as you want as long as they're not used for tracking.
Github for example uses cookies but doesn't ask for your consent:
"At GitHub, we want to protect developer privacy, and we find cookie banners quite irritating, so we decided to look for a solution. After a brief search, we found one: just don’t use any non-essential cookies. Pretty simple, really. " [1]
[1] https://github.blog/2020-12-17-no-cookie-for-you/
Ed: Just checked myself though. Page seems to be saving google and facebook cookies which would definitely require consent.