Start a new topic

Using authtoken instead of username/password


I'm building a GraphQL API for my React/Relay application that connects to Kinvey to fetch user data/perform other operations.

My application will use the user's auth token (the one generated by Kinvey, at user._kmd.authtoken) to send requests on behalf of the user. I started working with the REST API, but I'd like to use the Node.js library if possible.

I'm having trouble setting up Kinvey.User to get user info based on an authtoken. I can see that there's a setter method for authtoken, but any subsequent calls to getActiveUser() or me() after setting the auth token return null.

Any advice?

1 Comment


  1. Can you please send me your relevant code and the screenshot of the error?
  2. What version of the library you are using?




Login or Signup to post a comment