spring-boot-react-oauth2-social-login-demo icon indicating copy to clipboard operation
spring-boot-react-oauth2-social-login-demo copied to clipboard

Unable to login via github it says email not found

Open nanolearningmodules opened this issue 4 years ago • 2 comments

Question 1) Login via google works but when tying to login via github it throws error - email not found from oauth2 provider. Question 2) I dont want to use the react-social app but instead want to use the existing spring-boot code for viewing the response too- could you please explain the code- flow. ( I am not well versed with react ).

nanolearningmodules avatar Jun 26 '20 16:06 nanolearningmodules

Hi @nanolearningmodules ,

As I tested the app, there is no any specific kind of authentication. Backend side just gets any email and register. How do u try to login via github? And about question-2, you can use and test it locally via H2 database easily.

ramazansakin avatar Feb 23 '21 10:02 ramazansakin

For Q1) the following solution worked for me. Lets try once https://stackoverflow.com/questions/35373995/github-user-email-is-null-despite-useremail-scope

PailaKhagesh avatar Jul 28 '21 18:07 PailaKhagesh