OAuth 2.0 - NextCloud API Authentication

How to use OAuth 2.0 access token to authenticate NextCloud API instead of username & password?