<?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 Re: Expiry for authorization code &amp;amp; refresh tokens? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808368#M12233</link>
    <description>&lt;P&gt;Authorization codes seem to expire in 10 minutes. Makes sense, since that's the maximum lifetime the OAuth 2.0 spec recommends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to get tokens with an expired code returns HTTP 400 with&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"error":"invalid_grant","error_description":"Authorization code expired"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;And they're not going to be stored forever, so eventually, presumably, HTTP 400 with&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"error":"invalid_grant","error_description":"Invalid authorization code"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;(not that it makes a difference; error_description is not a machine-readable field and your code shouldn't care about it).&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 22:15:00 GMT</pubDate>
    <dc:creator>pettinen</dc:creator>
    <dc:date>2024-01-10T22:15:00Z</dc:date>
    <item>
      <title>Expiry for authorization code &amp; refresh tokens?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808002#M12227</link>
      <description>&lt;P&gt;Hi - Access token exportation is documented at 1 hour, but I cannot see anything indicating that the authorization code (i.e.: what is sent to the redirect URL after you point the user's browser to the 'authorize' endpoint). Does this mean that it's good forever? If not: does anyone know what errors will ensue once the expiry occurs?&lt;BR /&gt;&lt;BR /&gt;Same question for the refresh token parameter - does it also have a 1 hour timeout, same as the access token?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 18:58:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808002#M12227</guid>
      <dc:creator>DaveCa</dc:creator>
      <dc:date>2024-01-10T18:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expiry for authorization code &amp; refresh tokens?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808111#M12229</link>
      <description>&lt;P&gt;When an access token is expired, you'll get a 401 error.&lt;/P&gt;&lt;P&gt;When the refresh token is expired, you'll get a new one when you refresh the access token.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 19:55:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808111#M12229</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-01-10T19:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expiry for authorization code &amp; refresh tokens?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808117#M12230</link>
      <description>&lt;P&gt;Thanks for this. Any info on whether the authorization code ever expires?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 19:58:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808117#M12230</guid>
      <dc:creator>DaveCa</dc:creator>
      <dc:date>2024-01-10T19:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expiry for authorization code &amp; refresh tokens?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808368#M12233</link>
      <description>&lt;P&gt;Authorization codes seem to expire in 10 minutes. Makes sense, since that's the maximum lifetime the OAuth 2.0 spec recommends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to get tokens with an expired code returns HTTP 400 with&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"error":"invalid_grant","error_description":"Authorization code expired"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;And they're not going to be stored forever, so eventually, presumably, HTTP 400 with&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"error":"invalid_grant","error_description":"Invalid authorization code"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;(not that it makes a difference; error_description is not a machine-readable field and your code shouldn't care about it).&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 22:15:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/5808368#M12233</guid>
      <dc:creator>pettinen</dc:creator>
      <dc:date>2024-01-10T22:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expiry for authorization code &amp; refresh tokens?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/7214355#M19052</link>
      <description>&lt;P&gt;any idea on when the refresh_token expires i dont think it does&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2025 18:24:26 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Expiry-for-authorization-code-amp-refresh-tokens/m-p/7214355#M19052</guid>
      <dc:creator>abhinavpatra</dc:creator>
      <dc:date>2025-11-09T18:24:26Z</dc:date>
    </item>
  </channel>
</rss>

