authentication and authorization module for angular apps