What are the pros and cons of using OAuth 2.0 in API authentication?
Pros:
- Secure delegated access.
- Widely adopted (Google, Facebook, GitHub).
- Works well for 3rd-party apps.
Cons:
- Complex implementation.
- Requires token management.
- Overhead for small/simple APIs.