javascriptnode.jssyncano

How do I use the Syncano Javascript user API?


I can't figure out how to use the Syncano Javascript user API in a node.js web app to log in a user, nor to create a new user, nor to fetch the user given the user auth token.

Is there sample code showing this anywhere, or more comprehensive docs? Thanks.


Solution

  • If you perform npm run build, there will be a new sub-folder called docs. Open up index.html and you will have a full lib overview.

    Also, the HTTP API Reference will have a JavaScript tag for most code examples. You will want to find the sections for Users and User.

    Hope this helps!