TODO
- Fetch and cache identity metadata in the background
- Structure of stored access tokens etc
- Better test coverage for the library
- Error handling best practice
- Test passed in functions like
onBeforeLoginetc
We rely on Typescript as a base quality measurement. In addition, we use Jest and Supertest for unit testing.
To run all tests, run npm test.
To manually create a new release, do the following:
- Make sure tests pass
- Bump the version in the
package.json(we follow semver) - Run
npm run build - Run
cd dist - Run
npm publish --dry-runto test the publish. Have a quick look at the output and see that it makes sense - Run
npm publish
[TODO] In the future, when you push to master, the package will automatically publish a new minor version of the package to NPM.