feat: respond with json

This commit is contained in:
2025-05-25 14:15:50 +02:00
parent e98806e96f
commit d46e296ce1

View File

@ -132,6 +132,8 @@ func (h *AuthHandler) login(w http.ResponseWriter, r *http.Request) {
// Avatar
}
w.Header().Set("Content-Type", "application/json")
if err := encoder.Encode(Response{
AccessToken: accessToken,
RefreshToken: refreshToken,