fix(log): removing access token logging
This commit is contained in:
@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@ -26,7 +25,6 @@ func ProtectedRoute(next http.Handler) http.Handler {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(token[len("Bearer "):])
|
||||
userId, err := GetUserIdFromAccess(token[len("Bearer "):])
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
|
Reference in New Issue
Block a user