Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 362 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 362 Bytes

Oauth2 Golang Mysql

  • Mysql to store token

install

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

response

{
  "access_token": "sDrk..",
  "token_type": "Bearer",
  "refresh_token": "jkudy8..",
  "expiry": 7195,
}