<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is There a Way to Re-Generate OAuth Refresh Token? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Is-There-a-Way-to-Re-Generate-OAuth-Refresh-Token/m-p/1073521#M78478</link>
    <description>&lt;P&gt;My question is regarding the OAuth flow: Is there a way to request re-generation of the refresh token for a user? (besides reinstalling the app and going through the installation flow again)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 04:46:49 GMT</pubDate>
    <dc:creator>Sadat</dc:creator>
    <dc:date>2024-11-22T04:46:49Z</dc:date>
    <item>
      <title>Is There a Way to Re-Generate OAuth Refresh Token?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-There-a-Way-to-Re-Generate-OAuth-Refresh-Token/m-p/1073521#M78478</link>
      <description>&lt;P&gt;My question is regarding the OAuth flow: Is there a way to request re-generation of the refresh token for a user? (besides reinstalling the app and going through the installation flow again)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 04:46:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-There-a-Way-to-Re-Generate-OAuth-Refresh-Token/m-p/1073521#M78478</guid>
      <dc:creator>Sadat</dc:creator>
      <dc:date>2024-11-22T04:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is There a Way to Re-Generate OAuth Refresh Token?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-There-a-Way-to-Re-Generate-OAuth-Refresh-Token/m-p/1073727#M78492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/852966"&gt;@Sadat&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;To obtain &lt;STRONG&gt;OAuth access and refresh tokens&lt;/STRONG&gt;, follow these steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Make a URL-form encoded POST request&lt;/STRONG&gt; to &lt;CODE&gt;/oauth/v1/token&lt;/CODE&gt;.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the request body, include the following authentication parameters:
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;client_id&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;client_secret&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE&gt;code&lt;/CODE&gt; returned via the redirect URL.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Redirect URL and code generation:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;After a user authorizes your app, the redirect URL will include a &lt;CODE&gt;code&lt;/CODE&gt; value.&lt;/LI&gt;
&lt;LI&gt;Use this &lt;CODE&gt;code&lt;/CODE&gt; to generate the &lt;STRONG&gt;initial access token&lt;/STRONG&gt; and &lt;STRONG&gt;refresh token&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Access token lifetime:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Access tokens are short-lived.&lt;/LI&gt;
&lt;LI&gt;You can verify their lifespan using the &lt;CODE&gt;expires_in&lt;/CODE&gt; parameter, which provides the lifetime in seconds.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Generating new access tokens:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;To generate a new access token, make another URL-form encoded POST request to &lt;CODE&gt;/oauth/v1/token&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;In the request body, specify:
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;grant_type&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;client_id&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;client_secret&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;refresh_token&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;For additional details, you can check &lt;A href="#" rel="noopener" target="_blank"&gt;&lt;SPAN&gt;here&lt;/SPAN&gt;&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did my post help answer your query? Help the community by&amp;nbsp;&lt;STRONG&gt;marking it as a solution&lt;/STRONG&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 13:16:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-There-a-Way-to-Re-Generate-OAuth-Refresh-Token/m-p/1073727#M78492</guid>
      <dc:creator>SanjayKumar</dc:creator>
      <dc:date>2024-11-22T13:16:39Z</dc:date>
    </item>
  </channel>
</rss>

