- Mysql to store token
git clone https://github.com/danangkonang/oauth2-golang.git
cd oauth2-golang
go mod tidy
#database(optional)
docker-compose up -d
make up
go run main.go
{
"access_token": "sDrk..",
"token_type": "Bearer",
"refresh_token": "jkudy8..",
"expiry": 7195,
}