Is Local Storage safer than cookies?
Not for secrets. Local Storage is never sent with requests, which avoids some CSRF exposure, but every script on the origin can read it, and it cannot be marked HttpOnly. An HttpOnly cookie is invisible to JavaScript, so for session tokens a well-configured cookie is the safer choice.