class Doorkeeper::TokensController
def token
def token @token ||= if params[:token_type_hint] == "refresh_token" Doorkeeper.config.access_token_model.by_refresh_token(params["token"]) else Doorkeeper.config.access_token_model.by_token(params["token"]) || Doorkeeper.config.access_token_model.by_refresh_token(params["token"]) end end