Use WP cookie to authentificate user on an external app

Question

Is it possible to authentificate a logged in WP user by it’s wp auth cookie from an external app?

The problem: The nonce which is needed to validate the wp auth cookie is only available inside wp.
But I have to check that from outside WP.

At the moment a user always has to log in on my external app. Authentification is done using the JWT Auth Plugin.
That works perfect. I only don’t like the fact, that the user has to login again although it is already logged in via WP.

Any ideas how to make it work by using the standard wp login?

What I want to know:

  • Is a user logged in?
  • If yes, whats the ID of that logged in user?
0
TimO 4 months 0 Answers 14 views 0

Leave an answer