I have mobile app that uses Worpdress JWT Token Plugin API to login. It uses WP users to authenticate to the app. The token is used for other WP API calls. Now I need to open up authenticated page from mobile app and I need to pass authentication data of some kind so the user don't have to login once again. What options are ?
I have mobile app that uses Worpdress JWT Token Plugin API to login. It uses WP users to authenticate to the app. The token is used for other WP API calls. Now I need to open up authenticated page from mobile app and I need to pass authentication data of some kind so the user don't have to login once again. What options are ?
Share Improve this question edited Apr 1, 2020 at 12:18 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Apr 1, 2020 at 10:04 SilverGeekSilverGeek 11 Answer
Reset to default 0Most often a Bearer token is sent in the request headers. Add the Authorization
header with a value of Bearer ${authToken}
(note the space between Bearer
and ${authToken}
variable). The plugin should verify the token automatically on each request.