Recognize logged WP user in existing REST API

You can recognize a user by passing user-id

Example:

https://example.com/wp-json/wp/v2/posts?author=1

This author parameter will recognize author posts and return those