Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetUserId undefined #11

Open
auctifera-josed opened this issue Apr 6, 2016 · 5 comments
Open

GetUserId undefined #11

auctifera-josed opened this issue Apr 6, 2016 · 5 comments

Comments

@auctifera-josed
Copy link

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.

@scottbcovert
Copy link

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.

@lumon86
Copy link

lumon86 commented Nov 10, 2017

Im having the same issue how did you fixe it ?

@scottbcovert
Copy link

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.

@lmonroyxcaret
Copy link

Perfect Thank you @scottbcovert !

@fishme
Copy link
Contributor

fishme commented Dec 1, 2017

this is issue should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants