I am using ASP.NET Core WebAPI (.NET 6.0)
I would like to implement Google Authentication using the guideline shared by Google on https://developers.google.com/identity/gsi/web
My understanding of the process s that - I request a JWT from Google from my Web Client (VueJS) - send the JWT to the WebAPI to verify.
For verification, it seems I need to write some code as per the guidelines shared on https://developers.google.com/identity/sign-in/web/backend-auth.
Then I create a new JWT for the user using the details, role information, and claims stored in my DB and send it back to the client.
The client saves the new JWT to local storage and keeps sending it for every new API request.
The entire process feels a little like reinventing the wheel, is there a more standard method of handling the WebAPI part?