JWT Golang Authentication service built with Clean Architecure and Dependency Injection principles
-
0.0.0.0:8080/v1/health
=>GET=>Check API connection -
0.0.0.0:8080/v1/auth?id={user id}
=>GET=>Get token pair
Response example:
{
"access_token": "access_token",
"refresh_token": "refresh_token",
"user_ip": "172.24.0.1"
}- 0.0.0.0:8080/v1/auth/refresh
=>POST=>Refresh token pair
Response example:
{
"access_token": "access_token",
"refresh_token": "refresh_token",
}# start the app
make run