An Authentication Server boilerplate made with Go and PostgreSQL.
git clone https://github.com/mdfaizan7/go-authentication-boilerplate.gitcd go-authentication-boilerplatecreatedb go-auth # in bash/zsh
CREATE DATABASE go-auth; # in psqlYou 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