Skip to content

Instantly share code, notes, and snippets.

@cdennig
Created Sep 6, 2017
Embed
What would you like to do?
App
activate() {
return this
.httpClient
.fetch(settings.service + 'people')
.then((response) => {
return response
.json()
.then((data) => {
this.people = data;
this.decodedToken = this
.auth
.getDecodedToken();
let exp = this.decodedToken['exp'];
this.expires = new Date(0);
this.expires.setUTCSeconds(exp);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment