Commit 56d65c41 authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

docs (README): simplified examples

parent c878b141
......@@ -260,23 +260,11 @@ export class AppComponent implements OnInit {
this.user = auth.user();
this.expiration = this.user.pipe(
map(user => {
try {
return token.getTokenExpirationDate();
} catch (e) {
return null;
}
})
map(user => token.getTokenExpirationDate())
);
this.domains = this.user.pipe(
map(_ => {
try {
return token.getClaim<string[], string[]>('domains', []);
} catch (e) {
return [];
}
})
map(_ => _tokens.getClaim < string[], string[] > ('domains', []))
);
this.iss = this.user.pipe(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment