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