@seges/angular-authentication-service

3.3.2 • Public • Published

Authentication service for SEGES angular applications

Prerequisites

Angular UI router TypeScript 1.x

How to use

Five things must be set up using the authenticationProvider:

  • Bearer token (storedTokenKey)
  • Expiry date of the bearer token (storedTokenExpiryKey)
  • Authentication URL that points to a login page (externally)
  • Logout URL that logs the user out (externally)
  • A moment constructor

Afterwards the static method moduleRun on the authentication service must be run to ensure catching state changes.

Then inject the service as dependency where logins/logouts are handled.

/@seges/angular-authentication-service/

    Package Sidebar

    Install

    npm i @seges/angular-authentication-service

    Weekly Downloads

    18

    Version

    3.3.2

    License

    ISC

    Last publish

    Collaborators

    • jesperfriis
    • seges_bjd
    • mortenamby
    • planteit