1.0.0 • Published 9 months ago

aos-server-utils-2 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

aos-server-utils

Published Version: 1.0.2

Contains 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