An Authentication Server boilerplate made with Go and PostgreSQL.
git clone https://github.com/mdfaizan7/go-authentication-boilerplate.git
cd go-authentication-boilerplate
createdb go-auth # in bash/zsh
CREATE DATABASE go-auth; # in psql
You need to start the server with right credentials stored inside .env file.
You can do this with: cp .env.example .env
You can start the server with go run main.go
.
Then the server will start running on http://localhost:3000
.
- Register
- Login
- Logout
- Cookies
- Access tokens and Refresh Tokens
- Authentication Middleware