forcejs icon indicating copy to clipboard operation
forcejs copied to clipboard

GetUserId undefined

Open auctifera-josed opened this issue 8 years ago • 5 comments

Hi there, I'm trying to get the user Id with the method getUserId(), but when I type force.getUserId()I get the following error TypeError: undefined is not an object (evaluating 'oauth.id.split'), maybe someone has encountered this issue or has an idea of what I'm doing wrong that can help me.

auctifera-josed avatar Apr 06 '16 15:04 auctifera-josed

Just came across this myself while updating an app I made last year that uses a TypeScript version of ForceJS.

I believe the latest version already resolves the issue you and I were having, but in case you still have an older version like me then the patch I made might help you too-best of luck.

scottbcovert avatar Mar 24 '17 08:03 scottbcovert

Im having the same issue how did you fixe it ?

lumon86 avatar Nov 10 '17 19:11 lumon86

Hi @lumon86 - essentially I added a new 'userId' property onto the oauth object. Again, I believe the latest version already resolves the issue but you can follow the link from my last post to see specifically what code changes I made.

scottbcovert avatar Nov 11 '17 02:11 scottbcovert

Perfect Thank you @scottbcovert !

lmonroyxcaret avatar Nov 24 '17 18:11 lmonroyxcaret

this is issue should be fixed now.

fishme avatar Dec 01 '17 06:12 fishme