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: user.rb
    path of file: ./repos/gitlabhq/lib/gitlab/auth/atlassian
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Auth
    module 
    
        def self.assign_identity_from_auth_hash!(identity, auth_hash)
          identity.extern_uid = auth_hash.uid
          identity.token = auth_hash.token
          identity.refresh_token = auth_hash.refresh_token
          identity.expires_at = Time.at(auth_hash.expires_at).utc.to_datetime if auth_hash.expires?

          identity
        end