A bearer token is a type of access token used to authenticate and authorize protocols.
The client sends their bearer token, often in the Authorization
HTTP header, as proof of authentication to the server. The server verifies and authorizes the request based on the token.
Token-based authentication like this is used to replace other methods of authentication, like a username and password. For example, the DigitalOcean API uses bearer tokens to authenticate requests from users.