login without redirect
-
I try the sample code from here: https://simplejwtlogin.com/docs/autologin
$simpleJWT = new \SimpleJwtLogin\SimpleJwtLogin(“https://simplejwtlogin.com”, ‘/simple-jwt-login-v1’);
$url = $simpleJWT->login(‘Your JWT’);
header(‘Location: ‘ . $url);How can I autologin to wordpress without this part:
header(‘Location: ‘ . $url);
This line redirects me to WordPress, but I need to stay on the same page (without any redirection.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘login without redirect’ is closed to new replies.