Skip to content

Commit

Permalink
Try skip token validate
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 committed Oct 15, 2024
1 parent 3afb399 commit 5656322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comp/otelcol/ddflareextension/impl/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ type server struct {
// validateToken - validates token for legacy API
func validateToken(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if err := util.Validate(w, r); err != nil {
err := util.Validate(w, r)
if err != nil && err.Error() != "invalid session token" {
return
}
next.ServeHTTP(w, r)
Expand Down

0 comments on commit 5656322

Please sign in to comment.