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

Login only with email? (required this to implement social login on mobile apps) #70

Open
gtu-myowin opened this issue Aug 24, 2022 · 0 comments

Comments

@gtu-myowin
Copy link

Hi, I came here from https://github.com/Tmeister/wp-api-jwt-auth and I have installed your plugin https://wordpress.org/plugins/simple-jwt-login/

I am trying to implement social logins (Facebook, Google, Twitter, LinkedIn & Apple) for my Flutter mobile apps backed by WordPress. I wonder

  1. if it is possible to login with email only and get JWT token with this plugin because I will get only name & email from social sites. Even if I have register user with random password, they will still use social login in future and email is the only reliable data I would get from social sites.
  2. or since WordPress has the ability to get user by email & login without password, I can do that by registering a custom endpoint but how do I get or generate JWT token in this method for future authentication?

Thank you for your effort on the great plugin and supporting.

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

No branches or pull requests

1 participant