feat: verify api service in code generation

This commit is contained in:
2025-06-09 15:39:56 +02:00
parent b4699e987c
commit 299e7eddc4
3 changed files with 70 additions and 39 deletions

View File

@ -39,6 +39,15 @@ func (h *OAuthHandler) getAuthCode(w http.ResponseWriter, r *http.Request) {
return
}
if _, err := h.verifyOAuthClient(w, r, &VerifyOAuthClientParams{
ClientID: "",
RedirectURI: "",
State: "",
}); err != nil {
web.Error(w, err.Error(), http.StatusInternalServerError)
return
}
buf := make([]byte, 32)
_, err = rand.Read(buf)
if err != nil {