In my spring boot app I have implemented google oauth2 login. It works as expected but what i want is to save the user to database when they sign in for the first time.
I found this only answer https://stackoverflow.com/questions/48598417/how-do-you-save-users-who-have-logged-in-with-oauth-2-spring/55798276#55798276
But it doesn't work. Do i have to make any custom class and the save user method in there?
If anyone has encountered similar problem please help.