lib/doorkeeper/request/authorization_code.rb in doorkeeper-5.2.0.rc2 vs lib/doorkeeper/request/authorization_code.rb in doorkeeper-5.2.0.rc3
- old
+ new
@@ -15,9 +15,11 @@
end
private
def grant
+ raise Errors::MissingRequiredParameter, :code if parameters[:code].blank?
+
AccessGrant.by_token(parameters[:code])
end
end
end
end