How can i get/use accessToken in AuthInterceptor class & adding it to every API (.NetCore) call. I've already implemented
getAccessToken() {
return Auth.currentSession().then(res => {
return res.getAccessToken().getJwtToken();
});
}
in authService, But i can't seem to use this in intercept(req: HttpRequest, next: HttpHandler){} method. Any way around or flow changes i can implement.