I'm creating an api that is consumed by an android app and I wanted it to be possible for the user to connect to the app with Google, as I understand it, my endpoint must receive the id_token from Google, validate it and if possible create the user in the app by providing a new token for him to use in the requests. But I can't find any example code and I can't understand the Microsoft or Google documentation, to tell you the truth I'm a beginner in this authentication issue but I think I've evolved a bit, here is my code it violates some architectural principles but I want to know if it works, I will test it but if anyone has any tips or knows of related content I would appreciate it very much.