It's a basic question, but I see in a lot of tutorials of authentication in restful webservices that some user goes to a website and register yourself with an ID and a password, after this registration the server sends a token, so that user can use in your application sending this token in every API request (in the header for example).
It makes me think about the security to store a token in database as the same of the client requests.
Is it better to store this token hashed or something?