OAuth improves security by:
- Eliminating the need to share user credentials with third-party applications.
- Using short-lived access tokens that reduce the risk of credential exposure.
- Allowing fine-grained permission control over what data the client application can access.