I noticed the username/password authentication to the notehub API will be deprecated. I’m trying to reconfigure to use the client ID and secret via the Javascript SDK however I cannot seem to find any code examples. Is username / password this still the supported/ recomended method for the javascript SDK?
Hi @bkauf ,
That’s a great question. The username/password combination is still supported and the recommended method for interacting with Notehub via Notehub JS.
We are currently in the process of updating our auth system (which will include how API authentication is handled) as I write this, and I hope that within the next quarter or so we’ll have a better solution that uses client IDs and secrets.
For now, if you’d like to use client IDs and secrets, Notehub JS accepts those as well, and another user provided a hand-rolled option you could try: Previously generated API keys do not invalidate after 30 minutes nor after subsequent logins · Issue #42 · blues/notehub-js · GitHub
I apologize for not being more clear about that in our documentation, and hope this helps you in the meantime.
Great thank you for the quick response. I’ll look at the example and see if I can get it working.