CodePudding user response:
Is not recommended,First, the user information written to the token and token information is confidential, once the token is generated, can produce security risks, although can be encrypted, but since the client is js, the hackers are visible
Also, is to evaluate your writing user information is what? Teach him to hackers will produce what are the risks