···3939 returnURL := r.FormValue("return_url")4040 addAccount := r.FormValue("add_account") == "true"41414242+ // remove spaces around the handle, handles can't have spaces around them4343+ handle = strings.TrimSpace(handle)4444+4245 // when users copy their handle from bsky.app, it tends to have these characters around it:4346 //4447 // @nelind.dk:···7168 redirectURL, err := s.oauth.ClientApp.StartAuthFlow(r.Context(), handle)7269 if err != nil {7370 l.Error("failed to start auth", "err", err)7474- http.Error(w, err.Error(), http.StatusInternalServerError)7171+ s.pages.Notice(7272+ w,7373+ "login-msg",7474+ fmt.Sprintf("Failed to start auth flow: %v", err),7575+ )7576 return7677 }7778