<?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: expired_access_token in .NET API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/477758#M24168</link>
    <description>&lt;P&gt;The SDK should handle the refresh for you automatically. Can you double check that you have the correct access token, refresh token, app key, and app secret values though? For instance, you need to use the same app key and app secret you used to originally get the refresh token in order to use the refresh token to get a new access token.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 16:27:47 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-12-09T16:27:47Z</dc:date>
    <item>
      <title>expired_access_token in .NET API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/477510#M24163</link>
      <description>&lt;P&gt;I'm using the .NET Api with refresh tokens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the authorization uri and the user gives permission.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Code, ApiKey, RedirectUri, state: state, tokenAccessType : TokenAccessType.Offline, scopeList : scopeList, includeGrantedScopes: IncludeGrantedScopes.None);&lt;/PRE&gt;&lt;P&gt;I then get the token. The response does include a refresh token.&lt;/P&gt;&lt;PRE&gt;var tokenResult = await DropboxOAuth2Helper.ProcessCodeFlowAsync(redirectUri, ApiKey, ApiSecret, RedirectUri.ToString(), state);&lt;/PRE&gt;&lt;P&gt;I initialize the DropboxClient class with the refresh token.&lt;/P&gt;&lt;PRE&gt;var client = new DropboxClient(this.UserSettings.AccessToken, this.UserSettings.RefreshToken, ApiKey, ApiSecret, config);&lt;/PRE&gt;&lt;P&gt;This worked initially however I now get an "expired_access_token" result from the API. Does the client use the refresh token automatically or do I need to handle this and manually refresh the access token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'm using version 5.5.0 of the .NET Dropbox AP).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 05:35:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/477510#M24163</guid>
      <dc:creator>chrish7</dc:creator>
      <dc:date>2020-12-09T05:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: expired_access_token in .NET API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/477758#M24168</link>
      <description>&lt;P&gt;The SDK should handle the refresh for you automatically. Can you double check that you have the correct access token, refresh token, app key, and app secret values though? For instance, you need to use the same app key and app secret you used to originally get the refresh token in order to use the refresh token to get a new access token.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:27:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/477758#M24168</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-09T16:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: expired_access_token in .NET API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/523882#M25478</link>
      <description>&lt;P&gt;I have the same issue, and I can ensure the access token and refresh token are the correct value.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 02:23:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/523882#M25478</guid>
      <dc:creator>Ellen Y</dc:creator>
      <dc:date>2021-06-01T02:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: expired_access_token in .NET API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/524060#M25483</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1446935"&gt;@Ellen Y&lt;/a&gt;&amp;nbsp;the SDK should cover this case.&amp;nbsp; Can you confirm the version of the SDK you are working with, and share code snippets that demonstrate the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 20:26:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/expired-access-token-in-NET-API/m-p/524060#M25483</guid>
      <dc:creator>kylea</dc:creator>
      <dc:date>2021-06-01T20:26:01Z</dc:date>
    </item>
  </channel>
</rss>

