🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@seges/angular-authentication-service

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seges/angular-authentication-service

Angular UI router TypeScript 1.x

latest
npmnpm
Version
3.3.2
Version published
Maintainers
4
Created
Source

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.

Keywords

seges

FAQs

Package last updated on 25 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts