Permalink
Browse files

feat(authService): add getExp()

  • Loading branch information...
doktordirk committed May 31, 2016
1 parent f5056ce commit 026d0d82c98b3d647ab8cec93c87287e3d65cf9e
Showing with 11 additions and 0 deletions.
  1. +2 −0 README.md
  2. +9 −0 src/authService.js
@@ -152,6 +152,8 @@ authService
.getTokenPayload(): string
// get the token ttl if available
.getTtl(): Number
// get the token exp if available
.getExp(): Number
```
Additionally, you can use `AuthFilterValueConverter` and `AuthorizeStep` for UI feedback.
@@ -101,6 +101,15 @@ export class AuthService {
return authenticated;
}
/**
* Gets ttl in seconds
*
* @returns {Number} ttl for JWT tokens, NaN for all other tokens
*/
getExp() {
return this.authentication.getExp();
}
/**
* Gets ttl in seconds
*

0 comments on commit 026d0d8

Please sign in to comment.