Gautham Badhrinathan
Gautham Badhrinathan

Reputation: 2437

Get currently logged in user's UID — Dropbox

Is it possible to find out the currently logged in user's UID (User's UID in Dropbox) so that I can use an existing access_token instead of requesting for a new one?

I was thinking of storing access_tokens with the respective UIDs in a database.

If not, is there a better way to handle returning users?

Upvotes: 0

Views: 1085

Answers (1)

Mark S.
Mark S.

Reputation: 4017

I think you have the basic idea backwards. You need to identify the user to your application in order to pick the correct OAuth Tokens to use. You can't get the user's Dropbox UID without having their tokens. Without having the tokens, you can't identify who the user is.

Upvotes: 3

Related Questions