Is there a way to get the details/credentials (email, password, name, etc.) of the logged in user using salesforce SDK or even third party libraries?. After allot of googling and searching, i found this link but doesn't work on me:
You have the current user ID from the
userId property on
SFOAuthCredentials after authentication succeeds. Then you can just issue a SOQL query for the
User object to fetch any fields you like, including email, name, profile, etc. You certainly cannot fetch the user's password in that way, nor should you be able to -- that's the entire point of OAuth.