@seges/angular-authentication-service
v3.3.2
Published
Angular UI router TypeScript 1.x
Downloads
10
Readme
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.