feat: user CRUD
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"git.conway.engineer/ada/ordr.git/auth"
|
||||
"git.conway.engineer/ada/ordr.git/dto"
|
||||
"ordr-api/auth"
|
||||
"ordr-api/dto"
|
||||
|
||||
"github.com/gin-contrib/sessions"
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -157,6 +157,7 @@ func IsAuthenticated(auth *auth.Authenticator) gin.HandlerFunc {
|
||||
} else {
|
||||
if !HandleRefreshToken(session) {
|
||||
context.String(http.StatusUnauthorized, "Failed to refresh access token")
|
||||
return
|
||||
} else {
|
||||
context.Next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user