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.
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.
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