HACKER Q&A
📣 rishav_sharan

What is the auth solution I can use if I want SIWA and GSI in my app?


Hi HN

I am making an app in either C# or golang which needs authentication. However, when I strated reading up on authn/z, i realized that there are way too many strategies and options and I am ill equipped to choose \from among them.

I just want a "Sign in with Apple" and "Google Sign in" buttons in my app. I would also want the solution to handle sessions and cookies.

Essentially, I want my auth solution to handle everything related to user identity and just return a userid/email identifier that I can use in my db queries.

What is a simple and OSS solution that you would recommend for this?


  👤 verdverm Accepted Answer ✓
You're looking for OAuth. There are libraries, tutorials, and SaaS you can use. Generally people recommend not to roll your own auth system, but a simple one is not that hard either. You will need something on both the frontend and backend.