Generate token for user programmatically
-
Hi,
with the plugin installed the logged in user has the option to generate a token for him/herself under “my profile” -> Open Authentication. (How) is it possible to archive this programmatically?
Thank you very much in advance!
Background
– WP-Page and 1 Client
– Client uses WP-REST API protected endpoints
– user can log in (a) via WP-Page or (b) via Client
– (b) works fine (User credentials flow)The problem is that when the user logs in on the WP-page directly the Client can not make requests on his behalf, so I want to generate the users token and send it to the Client along with some other information so that the following flow is identical no matter if the user initially came from the WP-page or the client
- The topic ‘Generate token for user programmatically’ is closed to new replies.