Cookies or passkeys? Seems very complex when you can use something simply to track state and identity. Passkeys sync across cloud storage, for example, even if you’re using a uuid as the username.
Selling point seems to be the API, I'd prefer an alternative to document.cookie.split(";"), a sane way to store objects, etc, frontend friendly.
Typically use cookies to store data for the server (session id etc).