Apconic server utilities. Contains Custom errors, keycloak auth wrapper etc
npm install aos-server-utilsContains utilities such as Custom Errors, Keycloak Wrapper etc which are shared by various projects at Apconic.
1. CustomErrors
Extended Error classes which contains http error code and error message, which are sent to client when API request encounters an error.
Also contains an _errorHandler_ to handle CustomErrors as well as general errors
_Future release: Internationalized error message._
More info
2. Home server authenticator
An _injectable_ (refer: InversifyJS) Authenticator class to be used for authentication on API requests.
Also contains a Mock Authenticator which can be used during development.
More info
3. Simple Express Decorators
Very simple implementation of express decorators. Depends on inversify and Keycloak Authenticator (Module 2).
More info