lib/doorkeeper/oauth/token.rb in doorkeeper-5.3.3 vs lib/doorkeeper/oauth/token.rb in doorkeeper-5.4.0.rc1

- old
+ new

@@ -6,10 +6,10 @@ class << self def from_request(request, *methods) methods.inject(nil) do |_, method| method = self.method(method) if method.is_a?(Symbol) credentials = method.call(request) - break credentials unless credentials.blank? + break credentials if credentials.present? end end def authenticate(request, *methods) if (token = from_request(request, *methods))