update to new location

This commit is contained in:
DeveloperDurp 2025-07-05 07:40:12 -05:00
parent d530803872
commit 264fc0c72a
8 changed files with 102 additions and 102 deletions

View file

@ -3,12 +3,13 @@ package middleware
import (
"context"
"errors"
"github.com/charmbracelet/log"
"gitlab.com/developerdurp/durpify/handlers"
"net/http"
"strings"
"time"
"github.com/charmbracelet/log"
"gitlab.com/durfy/durpify/handlers"
"github.com/MicahParks/keyfunc"
"github.com/golang-jwt/jwt/v4"
)
@ -31,7 +32,6 @@ type StandardMessage struct {
func (cfg *AuthConfig) AuthMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
var groups []string
tokenString, err := getToken(w)
@ -110,7 +110,6 @@ func (cfg *AuthConfig) AuthMiddleware(next http.Handler) http.Handler {
}
func (cfg *AuthConfig) validateToken(tokenString string) (*jwt.Token, error) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()