WP-API / OAuth1

OAuth server implementation for WP API
http://oauth1.wp-api.org/
327 stars 109 forks source link

how to get dynamicaly user data with main auth token and token secrete #221

Open tushar4monto opened 5 years ago

tushar4monto commented 5 years ago

Hello,

Currently, when I run this function get_current_user_id() it returns current authenticated user data like We have used header authorization. Please check below link.

http://prntscr.com/luhp1v

if we have call login API, then we want to get this login user ID with get_current_user_id()

We have generated this OAuth keys with main administrator user User id 1 now using this key when we call any API we want get_current_user_id() function will return the user ID which we want, like what we need to do with login API or every API call how we can pass parameters which set user.

Thanks