Commit 960f78ac authored by David Burke's avatar David Burke

Fixed another refresh token bug

parent 8573a831
Pipeline #70939395 passed with stage
in 1 minute and 46 seconds
......@@ -70,6 +70,9 @@ export class TokenInterceptor implements HttpInterceptor {
this.isRefreshing = true;
return this.users.refreshToken(this.refreshToken).pipe(
exhaustMap(resp => {
req = req.clone({
setHeaders: { Authorization: resp.access_token }
});
return next.handle(req);
}),
catchError(err => {
......
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