Convertigo Public Knowledge base

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 :

{'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.

(c) Convertigo 2023 https://www.convertigo.com