Auth0 Home Blog Docs

Accessing custom API and Management API


#1

A user is logging in to access a custom API.

I then need to retrieve their user information, so I need to call the management api.

Does the user have to log in a second time to access that API or can I somehow set Lock to authorize against multiple audiences (as in my own API and the management one)?


#2

Or is there a way that I can bring down the user data in the custom API without using the managment api


#3

What I’m basically after is the equivalent of this Lock Web code, but for Android:

        lock.getUserInfo(accessToken, function(error, profile) {
          if (!error) {
            alert("hello " + profile.name);
          }
        });