import { ChangeDetectionStrategy, Component } from '@angular/core';
import { environment } from '@msfa-environment';

@Component({
  selector: 'msfa-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class LoginComponent {
  private readonly _baseLoginUrl = `${environment.ciam.loginUrl}&client_id=${environment.ciam.clientId}&redirect_uri=${window.location.origin}&template=msfa`;
  mobileBankIdLink = `${this._baseLoginUrl}&acr_values=bankid-mobile`;
  bankIdLink = `${this._baseLoginUrl}&acr_values=bankid`;
  passwordLink = `${this._baseLoginUrl}&acr_values=password`;
}
