Having spent the morning playing around with the APIs and trying to get an app going, I’ve extracted the API as it is in the latest demo app into its own package.
This is purely for my own understanding so far. (and inspired by https://github.com/eblanshey/safenet ). I wanted to get something going with the latest launcher APIs.
npm i safe-js
It’s been refactored to be promise based and I’ve simplified away the angular code there too.
Right now auth work and create file is returning true. I haven’t had chance to test the rest yet (that’s my first npm package, was a bit confused with publishing etc; so this will be buggy). But if you want to pull and play, and PR with solutions to any bugs, that would be most welcome.
Anyway, I plan to update this as I find the problems that will exist in there. But I thought it might be useful for other devs even as it is now.