• mrcool174

    (@mrcool174)


    Hi,
    I have created a web application in wordpress, and for authentication I have used auth_redirect() in functions.php. Now I would like to write rest api to use in android app but unable in hitting api without authentication. So my question is: How to authenticate the wordpress user using android app.

    thanks in advance!!

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    In order to use the default cookie authentication, the user needs to login using the normal web interface so the proper cookies are set. Naturally requiring such a login often defeats the purpose of having a mobile app. In such cases you should utilize one of the authentication plugins.

Viewing 1 replies (of 1 total)

The topic ‘authenticate user using wp-rest-api through android app’ is closed to new replies.