Log in successfully. The backend returns a userId, and then you can see in cookie that the name and the value
name are userId,userId, which varies according to each user
I want to use this to determine whether to log in in the route, but I can"t get it
or do I want to store this userId, on my own local localstorage?
Note: make sure that the KEY of cookie should be fixed, not set dynamically, so you can"t get it all the time