M
M
martynetswebdev2021-08-06 20:09:08
PHP
martynetswebdev, 2021-08-06 20:09:08

How to access WP Rest API by token/password/key?

Hello, we are creating a mobile application and need to pull data from Wordpress. There is data about users and some meta fields that need to be hidden for everyone except the admin, but they still need to be passed to the application. How to do it? I'm trying through JWT, but it's a little different or I can't set it up correctly

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Developer, 2021-08-06
@samodum

Yes, via JWT is a good option

D
Dmitry Alyoshin, 2021-08-07
@ArchitectOfRuin

1. https://wordpress.org/plugins/jwt-authentication-f... is the most popular plugin for jwt authentication.
2. https://wordpress.org/plugins/custom-api-for-wp/ - for linking with custom endpoints through the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question