Skip to content

Commit

Permalink
fix: avoid the front-end calling api/renew loop (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
bufubaoni committed Nov 2, 2023
1 parent cdcd9a3 commit edd808f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ var signupHandler = func(w http.ResponseWriter, r *http.Request, d *data) (int,
}

var renewHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {
w.Header().Set("X-Renew-Token", "false")
return printToken(w, r, d, d.user)
})

Expand Down

0 comments on commit edd808f

Please sign in to comment.