Hello, I'm using Golang with GIN and I have a prob...
# support-questions-legacy
t
Hello, I'm using Golang with GIN and I have a problem I can't secure my API routes using roles
Copy code
r.GET("/test", verifySession(nil), func(ctx *gin.Context) {
        sessionContainer := session.GetSessionFromRequestContext(ctx.Request.Context())
        sessionContainer.GetClaimValue(userrolesclaims.UserRoleClaim)
        
        ctx.JSON(200, map[string]string{"message": "ok"})
    })
}