refac: removed 7 direct and 12 indirect go modules for custom code instead

This commit is contained in:
Florian Sylvain committed 2026-10-21 23:13:46 +02:00
1 parent cfcf108488
commit c68e9a7858
73 files changed
+2455 -428

No files matched your search

+3 -4
View File
@@ -1,14 +1,13 @@
package claims
import (
"RenewCMS/api/pkg/authtoken"
"math"
"net/http"
"github.com/go-chi/jwtauth/v5"
)
func UserId(r *http.Request) (uint32, bool) {
_, claims, err := jwtauth.FromContext(r.Context())
claims, err := authtoken.FromContext(r.Context())
if err != nil {
return 0, false
}
@@ -31,7 +30,7 @@ func UserId(r *http.Request) (uint32, bool) {
}
func TokenVersion(r *http.Request) (uint32, bool) {
_, claims, err := jwtauth.FromContext(r.Context())
claims, err := authtoken.FromContext(r.Context())
if err != nil {
return 0, false
}