Fix return the member ID for logInWithPermission

Will now return the ID, as per the doc-block comment