Hello, I assume you are using tokens as it's a stateless app, so you might like to give js-cookie a try, seems to be a better solution than using local storage.
You can use it as follows
importCookiefrom"js-cookie"consttoken=Cookie.get("token")?Cookie.get("token"):null;//to set a cookieCookie.set("token",token);//refer the js-cookie documentation for more options
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.
Hello, I assume you are using tokens as it's a stateless app, so you might like to give js-cookie a try, seems to be a better solution than using local storage.
You can use it as follows