简体   繁体   中英

How can I access the stormpath user account's custom data via Aouth.io API?

I have integrated OAuth.io User Management with Stormpath. I need to access custom data of stormpath's user account using Aouth.io's Android and iOS APIs.

I am able to access user's firstname, lastname, email and id only but not custom data which I have entered through Stormpath's Editor in Accounts section.

It looks like OAuth.io provides a way for you to do that here: http://docs.oauth.io/#update-your-user-data

You can do something like:

user.data.firstname = 'Thomas';
user.data.someData = {
    a: 42,
    b: "some string"
}
user.save().done(function() {
    //todo when saved
}).fail(function(err) {
    //handle `err``
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM