class Doorkeeper::OAuth::Authorization::Token

def access_token_expires_in(configuration, context)

def access_token_expires_in(configuration, context)
  if configuration.option_defined?(:custom_access_token_expires_in)
    expiration = configuration.custom_access_token_expires_in.call(context)
    return nil if expiration == Float::INFINITY
    expiration || configuration.access_token_expires_in
  else
    configuration.access_token_expires_in
  end
end