Serverless Authentication with Golang

Search for a command to run...

No comments yet. Be the first to comment.
First of all, I love Cloudflare, I think they have a great product, I use Cloudflare to manage all my DNS, anyone that has a homelab setup knows you need to figure out a way to keep Cloudflare IP update if your home IP is changed, there are many grea...
Your team has 14 versions of the same code review skill across 5 repos, with no way to sync them. when one improves, the others don't. drop a folder in .claude/skills/ and pray nothing drifts. source

AI agents are unreasonably good at writing SQL. They get specific error messages, fix their own mistakes in one retry, and can introspect query performance with EXPLAIN ANALYZE before you even ask. No

n8n has over 400 integrations. Zapier claims 7,000+. Every single one was hand-built, tested against a moving API, and will eventually break when that API ships a v2. The entire workflow automation in

Part of the "Your Next Startup" series, where I break down startup ideas I think are worth building. Auth0 sold for \(6.5B. Okta is worth \)15B+. CyberArk, Delinea, BeyondTrust, all printing money fro

For as long as software has existed, we've been building two doors into our systems. Door one: the UI, a carefully designed surface where humans point, click, and occasionally rage-quit. Door two: the

Almost every project needs authentication to serve secure user content.
For most of my side projects, I prefer to pay per use for cost optimization.
continuing my experiment with Golang, I created Golang service that's going to run inside AWS Lambda function and store the data in Dynmodb database, I'm using serverless AWS services to fulfil my requirement of cost optimize service.
Email/password login
Forgot password
Provider login using google/github and more
Multi tenant(orgs)
Store user data on signup
Basic roles
Invite users
Emails template
JWT
Supported routes:
| method | route | payload | Role | public | description |
| POST | /v1/auth/login | email, password | true | Login | |
| POST | /v1/auth/login/email | true | Passwordless Login | ||
| POST | /v1/auth/signup | email, password, data | true | Signup | |
| GET | /v1/auth/validate | true | ValidateToken | ||
| POST | /v1/auth/renew | false | Get new Token | ||
| GET | /v1/auth/provider/:provider | true | Login with provider | ||
| GET | /v1/auth/provider/:provider/callback | true | Validate provider login | ||
| GET | /v1/users/me | true | Health check | ||
| PUT | /v1/users/me | data | false | Update user data | |
| PUT | /v1/users/me/password | password,repeated password | false | Update user password | |
| POST | /v1/orgs | name | false | Create Org | |
| POST | /v1/orgs/:orgId/invite | email, role | admin | false | Invite user to me org |
| GET | /v1/orgs/:orgId/users | admin | false | Get org users |