As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
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
P
Pranav J
said
over 6 years ago
Cameron,
Can you please send me your relevant code and the screenshot of the error?
Cameron Kelley
Hello,
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?