From 845911573a312b0c603a58c90fb3bede2c03d031 Mon Sep 17 00:00:00 2001
From: Artur Gubaidullin <lapteuh@gmail.com>
Date: Sat, 7 Dec 2024 02:12:05 +0400
Subject: [PATCH] Update code examples in
 building-a-login-with-github-button-with-a-github-app.md (#35414)

Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
---
 ...ilding-a-login-with-github-button-with-a-github-app.md | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app.md b/content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app.md
index bece6a905020..23dc0f880617 100644
--- a/content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app.md
+++ b/content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app.md
@@ -257,12 +257,10 @@ These steps lead you through writing code to generate a user access token. To sk
      uri = URI("{% data variables.product.rest_url %}/user")
 
      result = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
-       body = {"access_token" => token}.to_json
-
        auth = "Bearer #{token}"
        headers = {"Accept" => "application/json", "Content-Type" => "application/json", "Authorization" => auth}
 
-       http.send_request("GET", uri.path, body, headers)
+       http.send_request("GET", uri.path, nil, headers)
      end
 
      parse_response(result)
@@ -340,12 +338,10 @@ def user_info(token)
   uri = URI("{% data variables.product.rest_url %}/user")
 
   result = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
-    body = {"access_token" => token}.to_json
-
     auth = "Bearer #{token}"
     headers = {"Accept" => "application/json", "Content-Type" => "application/json", "Authorization" => auth}
 
-    http.send_request("GET", uri.path, body, headers)
+    http.send_request("GET", uri.path, nil, headers)
   end
 
   parse_response(result)