fix: use the token

This commit is contained in:
2025-06-11 18:48:08 +02:00
parent 7fa7e87e88
commit 38955ee4e6

View File

@ -74,8 +74,8 @@ func (h *AuthHandler) refreshToken(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
if err := encoder.Encode(Response{ if err := encoder.Encode(Response{
AccessToken: access, AccessToken: access.Token,
RefreshToken: refresh, RefreshToken: refresh.Token,
}); err != nil { }); err != nil {
web.Error(w, "failed to encode response", http.StatusInternalServerError) web.Error(w, "failed to encode response", http.StatusInternalServerError)
} }