Fix return the member ID for logInWithPermission

Will now return the ID, as per the doc-block comment
Merge pull request #2006 from ss23/patch-4

Fix return the member ID for logInWithPermission