Authentication
DiscoDB uses JSON Web Tokens (JWTs) to authenticate requests. To obtain one, use the login endpoint. Then, authenticate your requests by adding the Authorization
header with the value Bearer <token>
, where
Authorization: Bearer <token>
Best Practices
- Do not push your tokens to version control. Otherwise, your teammates will be mad at you!!!
- Use sessionStorage instead of localStorage on browsers to prevent XSS attacks