A simple authentication service built with Go, Fiber v3, and GORM — featuring user registration, login, email verification, and password reset, all backed by SQLite and Resend for transactional email, with Oauth support.
| Layer | Tech |
|---|---|
| Web framework | Fiber v3 |
| ORM | GORM |
| Database | SQLite |
| Templates | Django templates via gofiber/template/django |
| Resend | |
| Password hashing | bcrypt |
GO-AUTH/
├── auth/
│ └── auth.go # Login logic
├── mail/
│ └── email.go # Resend integration (verification + reset emails)
├── models/
│ └── user.go # User model, DB connection, token helpers
├── templates/
│ ├── base.django
│ ├── index.django
│ ├── login.django
│ ├── forgot-password.django
│ └── reset-password.django
├── .env # RESEND_API_KEY
├── go.mod
├── go.sum
├── main.go # Routes and app setup
└── users.db # SQLite database
go mod tidy
.env file in the project root: RESEND_API_KEY=re_your_key_here
go run main.go
The server starts on http://localhost:3000.
| Method | Path | Description |
|---|---|---|
| GET | / | Sign up page |
| POST | /register | Create a new user, send verification email |
| GET | /verify | Verify email via token query param |
| GET | /login | Login page |
| POST | /signin | Authenticate user |
| GET | /forgot-password | Request password reset form |
| POST | /forgot-password | Send password reset email |
| GET | /reset-password/:token | Reset password form (token in URL path) |
| POST | /reset-password/:token | Submit new password |
/reset-password/:token) rather than a hidden form field, so the token travels with the page URL itself.