Get user details
Is there a way to retrieve some details about a user (id, email) after an OAuth token has been retrieved? I can only see a list of budgets or accounts for now as the most high-level objects.
Of course. If i want to integrate YNAB into my application (and want him to login via the oauth connection), I would like to have a unique identifier of the user (account) in my system. Currently, I do not understand which id I could use for that:
- there can be multiple budget ids per user
- there can be multiple account ids per user.
If a user object was exposed, I could either use the mail address or the internal id as this identifier.
Or is there an easier way to achieve this?Reply
I am not sure how a temporarily issued id like the access_token could be used for identifying a user through sessions.
Looking at many examples of https://github.com/python-social-auth/social-core/tree/master/social_core/backends , I see that for most backends, there is a way to retrieve at least a user id which is used to identify a user (internal id or email)
Let me know if I miss something important.Reply