• Resolved k4mr4n

    (@k4mr4n)


    I am using WCFM multivendor marketplace and I am making custom menu for WCFM vendor, in this custom menu I am implementing WCFM REST API for creating products, I need to do basic authetication for REST API, right now I can get vendors username form database but since password is hashed I cannot use it, since I cannot use it, I need to ask it again in my custom menu, is there a way that I can get wordpress username and password from first login try, I dont want to vendor enter his wordpress password again in my custom menu for WCFM REST API.

    “Authorization: Basic “. base64_encode(username:password)

Viewing 1 replies (of 1 total)
  • Plugin Author WC Lovers

    (@wclovers)

    For this purpose you need to work with JWT authentication method. As you see in basic authentication you need to send the username and password every time for every request. So you need to ask the user every time for password or store the password, none of which is recommended.
    So if you use JTW auth you can generate the the login token first time then use that token for further fetching of API data.

Viewing 1 replies (of 1 total)

The topic ‘WCFM REST API WordPress’ is closed to new replies.