How to use the angular-auth-oidc-client.AuthorizationResult.authorized function in angular-auth-oidc-client

To help you get started, we’ve selected a few angular-auth-oidc-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vietnam-devs / crmcore / src / hosts / CRMCore.ClientApp.Angular / src / app / app.component.ts View on Github external
private onAuthorizationResultComplete(authorizationResult: AuthorizationResult) {
    const path = this.read('redirect');
    if (authorizationResult === AuthorizationResult.authorized) {
      this.router.navigate([path]);
    } 
  }