package api import ( "encoding/json" "log" "net/http" "strings" "time" ) func (s *Server) handleAuth(w http.ResponseWriter, r *http.Request) { // ...existing code... }