Skip to content

Commit

Permalink
fix: middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
eminetto committed Apr 7, 2023
1 parent c7b5257 commit 0c5deb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/middleware/is_authenticated.go
Expand Up @@ -19,7 +19,7 @@ func IsAuthenticated(ctx context.Context, telemetry telemetry.Telemetry) func(ne
func Handler(ctx context.Context, telemetry telemetry.Telemetry) func(next http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
fn := func(rw http.ResponseWriter, r *http.Request) {
ctx, span := telemetry.Start(ctx, "IsAuthenticated")
_, span := telemetry.Start(ctx, "IsAuthenticated")
defer span.End()
errorMessage := "Erro na autenticação"
tokenString := r.Header.Get("Authorization")
Expand Down

0 comments on commit 0c5deb1

Please sign in to comment.