Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions session/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ type adminSessionRefresh struct {
ID string `json:"id"`
}

// swagger:route GET /admin/token/extend identity adminCurrentSessionExtend
// swagger:route PATCH /admin/token/extend identity adminCurrentSessionExtend
//
// Calling this endpoint refreshes a current user session.
// If `session.refresh_min_time_left` is set it will only refresh the session after this time has passed.
Expand All @@ -992,9 +992,6 @@ type adminSessionRefresh struct {
//
// Schemes: http, https
//
// Security:
// oryAccessToken:
//
// Responses:
// 200: session
// 404: errorGeneric
Expand All @@ -1013,7 +1010,10 @@ func (h *Handler) adminCurrentSessionExtend(w http.ResponseWriter, r *http.Reque
return
}
}

if err := h.r.SessionManager().IssueCookie(r.Context(), w, r, s); err != nil {
h.r.Writer().WriteError(w, r, err)
return
}
h.r.Writer().Write(w, r, s)
}

Expand Down
Loading