import { Component , OnInit } from '@angular/core' ; import { environment } from "../../../environments/environment" ; @ Component ( { selector : 'app-login' , templateUrl : './login.component.html' , styleUrls : [ './login.component.css' ] } ) export class LoginComponent implements OnInit { constructor ( ) { } ngOnInit ( ) { } startLogin ( ) { window . location . href = `https://www.bungie.net/en/OAuth/Authorize?client_id=${ environment . clientId }&response_type=code&reauth=true` ; } }