Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to auto-login #42

Open
junaidbinfarooq opened this issue May 11, 2022 · 0 comments
Open

Not able to auto-login #42

junaidbinfarooq opened this issue May 11, 2022 · 0 comments

Comments

@junaidbinfarooq
Copy link

junaidbinfarooq commented May 11, 2022

Bug Description

We recently set up the plugin to authenticate our users to a WordPress site via another app, based on php/Symfony. It worked just fine at that time. We were able to retrieve JWTs and auto-login to the wp site using the plugin. Recently, there were some changes made to the wp site which I believe have somehow affected the auto-login functionality. Though it does respond correctly if we try to request access tokens but if we use the same tokens to auto-login to the site, it doesn't work as expected. The request does seem to succeed but the user is clearly not logged in. I am not sure what could be the possible reason for it as there is visually no error/exception. If I, however, try to make the request to the auto-login endpoint using the browser, ie., I put the whole URL with the required query parameters in the URL bar, I am indeed logged in but it doesn't work via the app.

Environment

Question Answer
PHP version 7.4
WordPress version 5.9.3
Simple-JWT-Login plugin version 3.4.6

Other installed plugins (optional)

Additional Context (optional)

This could be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants