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: redirect_uri_from_state_service.rb
    path of file: ./repos/openproject/app/services/oauth_clients
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject 
    
    def oauth_state_cookie
      return nil if @state.blank?

      state_cookie = @cookies["oauth_state_#{@state}"]
      return nil if state_cookie.blank?

      state_value = MultiJson.load(@cookies["oauth_state_#{@state}"], symbolize_keys: true)
      state_value[:href]
    end