Skip to main content
Skip table of contents

LibUserManager: How to get a user's profile after authenticated?

A getAuthenticated user will only return the technical id of the current user. The profile information comes directly in the ‘out’ of the OAuth/OpenID as stated here :

https://doc.convertigo.com/documentation/latest/reference-manual/convertigo-objects/mobile-application/components/action-components/oauth-openid/

As you see, this Action will return in the ‘out’ the follwing structure :

JSON
{'login':'ok','object':{...provider metadata ...}} // if the users starts a new session with Convertigo MBaaS server
{'token':'... OAuth token data ...'} // if a session has already been established with Convertigo MBaaS server.

So the object holds the provider data profile information . This will depend of the Provider. We suggest you use a JSON.strinfigy(out) to see what is in object so you can use the field you want.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.