module Doorkeeper::Rails::Helpers
def doorkeeper_render_options(error)
def doorkeeper_render_options(error) if doorkeeper_invalid_token_response? doorkeeper_unauthorized_render_options(error: error) else doorkeeper_forbidden_render_options(error: error) end end