W
Size: a a a
W
W
NL
NL
В
D
К
DB
R
DZ
Observable
RY
Observable
DZ
return this.store.select(fromAuth.
selectTokensselectTokens).pipe(
skipWhile((tokens) => tokens.access_token === 'none'),
mergeMap((tokens) => {
const authReq = req.clone({
headers: req.headers.set(
'Authorization',
`Bearer ${tokens.access_token}`
),
});
return next.handle(authReq);
})
);
DZ
DZ
HttpInterceptor
RY
return this.store.select(fromAuth.
selectTokensselectTokens).pipe(
skipWhile((tokens) => tokens.access_token === 'none'),
mergeMap((tokens) => {
const authReq = req.clone({
headers: req.headers.set(
'Authorization',
`Bearer ${tokens.access_token}`
),
});
return next.handle(authReq);
})
);
DZ
DZ
HttpInterceptor
RY