Last change
on this file since afefe75 was 1f4846d, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago |
Jwt token auth interceptors, services and guards
|
-
Property mode
set to
100644
|
File size:
271 bytes
|
Rev | Line | |
---|
[1f4846d] | 1 | import { AuthService } from './auth.service';
|
---|
| 2 |
|
---|
| 3 | export function appInitializer(authService: AuthService) {
|
---|
| 4 | return () =>
|
---|
| 5 | new Promise((resolve) => {
|
---|
| 6 | console.log('refresh token on app start up')
|
---|
| 7 | authService.refreshToken().subscribe().add(resolve);
|
---|
| 8 | });
|
---|
| 9 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.