Updated Google OAuth Go Sample
Hello.
I’ve recently updated my Google OAuth Go sample application1 to follow modern standards and practices.
The update brings several improvements including a cleaner UI, better error handling, and more robust authentication flows.
What’s New
New interface for the login side:
Nicer errors:
Welcome message:
Battle arena:
And lastly, logout:
Technical Updates
I added OAuth 2.0 best practices and some proper flows with auth middleware.
Setup remains simple - obtain credentials from Google Cloud Console, configure the redirect URI to http://127.0.0.1:9090/auth
, and place your creds.json
in the project root.
It runs under 9090 and provides a protected /battle/field
route to showcase authenticated access.
Conclusion
That’s about it.
Thanks for reading!