Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private configureAuth() {
this.oauthService.configure(authConfig);
this.oauthService.tokenValidationHandler = new JwksValidationHandler();
let self = this;
this.oauthService.loadDiscoveryDocumentAndTryLogin({
disableOAuth2StateCheck: true
});
this.sessionCheckTimer = setInterval(function () {
if (!self.oauthService.hasValidIdToken()) {
self.oauthService.logOut();
self.route.navigate(["/"]);
}
}, 3000);
}
}