Skip to content

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

@tushar4monto

Description

@tushar4monto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions