You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: refresh_by_access_controller.rb
    path of file: ./repos/jwt_sessions/test/support/dummy_api/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class RefreshByAccessController < ApplicationController
  before_action :authorize_refresh_by_access_request!

  def create
    sess
    
  def create
    session = JWTSessions::Session.new(payload: claimless_payload, refresh_by_access_allowed: true)
    tokens = session.refresh_by_access_payload do
      # notify the support
      raise JWTSessions::Errors::Unauthorized, 'Malicious activity detected'
    end
    response.set_cookie(JWTSessions.access_cookie,
                        value: tokens[:access],
                        httponly: true,
                        secure: Rails.env.production?)

    render json: { csrf: tokens[:csrf] }
  end