I'm making a ReactJS application and there's a token-based authentication (Laravel Sanctum) which gets issued upon user login which I keep in the browser's local storage. Therefore I could look up the token and use it in a HTTP client like Postman.
Another thing that worries me is that I store member information in the local storage like:
{
name: "John Doe",
privileges: [1, 2, 3, 4],
jobPositionID: 1,
departmentID: 5
}
They are not sensitive information (other than the token), but I'm new to building SPAs and I'm secured about the security aspect of it all.