<?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 Store Multiple Access Tokens in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408840#M22170</link>
    <description>&lt;P&gt;Hi. I am building an android app which uses dropbox api to connect to dropbox through auth flow and then upload files on dropbox, I want to store my access token for each account into the database so that with multiple accounts i have access tokens for each account, I am doing this because i do not want to generate new tokens each time the user logs in with different account. My problem is that i have to store access token against an account in the database so that i know that which access token belongs to which account, so for that i must have a unique id for each account which should not be change in future so that i can differentiaite between accounts. I have researched and get this method i.e&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Auth.&lt;SPAN&gt;getUid&lt;/SPAN&gt;();&lt;/PRE&gt;
&lt;P&gt;it returns me a numeric value. I want to ask what is this method and can i use this value to differentiate between accounts and store my access token againts this value for each account? or anyother solution!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2020 21:35:55 GMT</pubDate>
    <dc:creator>qazimuneeb1</dc:creator>
    <dc:date>2020-04-10T21:35:55Z</dc:date>
    <item>
      <title>Store Multiple Access Tokens</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408840#M22170</link>
      <description>&lt;P&gt;Hi. I am building an android app which uses dropbox api to connect to dropbox through auth flow and then upload files on dropbox, I want to store my access token for each account into the database so that with multiple accounts i have access tokens for each account, I am doing this because i do not want to generate new tokens each time the user logs in with different account. My problem is that i have to store access token against an account in the database so that i know that which access token belongs to which account, so for that i must have a unique id for each account which should not be change in future so that i can differentiaite between accounts. I have researched and get this method i.e&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Auth.&lt;SPAN&gt;getUid&lt;/SPAN&gt;();&lt;/PRE&gt;
&lt;P&gt;it returns me a numeric value. I want to ask what is this method and can i use this value to differentiate between accounts and store my access token againts this value for each account? or anyother solution!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:35:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408840#M22170</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2020-04-10T21:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Store Multiple Access Tokens</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408858#M22171</link>
      <description>&lt;P&gt;That returns the user ID from the authorization flow. The user ID does identify the particular&amp;nbsp;Dropbox account and is stable for the account, so you can technically use that. Preferably&amp;nbsp;though, you should use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/users/Account.html#accountId" target="_self"&gt;Account.accountId&lt;/A&gt; as returned by&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/users/DbxUserUsersRequests.html#getCurrentAccount--" target="_self"&gt;getCurrentAccount&lt;/A&gt;. That also uniquely identifies the Dropbox account and is stable. The account ID is&amp;nbsp;recommended over the user ID.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:04:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408858#M22171</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-10T19:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Store Multiple Access Tokens</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408861#M22172</link>
      <description>&lt;P&gt;Thanks Greg! Looking forward to achieve this target &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:06:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408861#M22172</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2020-04-10T19:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Store Multiple Access Tokens</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408862#M22173</link>
      <description>&lt;P&gt;One thing more that where to call this method to get accountId?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:11:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408862#M22173</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2020-04-10T19:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Store Multiple Access Tokens</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408881#M22175</link>
      <description>&lt;P&gt;To retrieve the account ID, you should call &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/users/DbxUserUsersRequests.html#getCurrentAccount--" target="_self"&gt;the&amp;nbsp;getCurrentAccount method&lt;/A&gt;. There's &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/c710ef80f1c2700031baad7c615dc9934162c090/examples/android/src/main/java/com/dropbox/core/examples/android/GetCurrentAccountTask.java#L42" target="_self"&gt;an example of doing so here&lt;/A&gt;. You can make that call wherever/whenever you need in your app, e.g., when you need to get the account ID when first storing the access token, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:42:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Store-Multiple-Access-Tokens/m-p/408881#M22175</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-10T19:42:57Z</dc:date>
    </item>
  </channel>
</rss>

