// RevokeOtherSessions revokes all sessions of the same user besides the
// current one.
RevokeOtherSessions revokes all sessions of the same user besides the
current one.
// RevokeOtherSessions revokes all sessions of the same user besides the // current one .
func (h *Handler) RevokeOtherSessions(w http.ResponseWriter, r *http.Request) {
	if err := h.session.manager.RevokeOther(r.Context()); err != nil {
		httpflow.RespondError(h.log, w, r, err)
		return
	}
	httpflow.Respond(h.log, w, r, nil, http.StatusNoContent)
}
func ( h * Handler ) RevokeOtherSessions ( w http . ResponseWriter , r * http . Request ) { if err := h . session . manager . RevokeOther ( r . Context ( ) ) ; err != nil { httpflow . RespondError ( h . log , w , r , err ) return } httpflow . Respond ( h . log , w , r , nil , http . StatusNoContent ) }
RevokeOtherSessions revokes all sessions of the same user besides the
current one.
RevokeOtherSessions revokes all sessions of the same user besides the current one .