def load_mxit_auth_token type 
      auth_tokens = session[:mxit_auth_tokens]
      if auth_tokens
        auth_token = auth_tokens[type]
        if auth_token and not auth_token.has_expired?
          return auth_token
        end
      end

      nil
    end
def load_mxit_auth_token type 
      auth_tokens = session[:mxit_auth_tokens]
      if auth_tokens
        auth_token = auth_tokens[type]
        if auth_token and not auth_token.has_expired?
          return auth_token
        end
      end

      nil
    end
type = :user | :app