Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amay077 committed Mar 2, 2023
1 parent afab0ed commit ae21c69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/app/ui/auth/auth.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export class AuthComponent implements OnInit {
const state = url?.searchParams?.get('state') ?? '';

this.err = '';
// const code = this.route.snapshot.queryParamMap.get('code') ?? '';
console.log(`${this.constructor.name} ~ ngOnInit ~ code:`, code);
// const state = this.route.snapshot.queryParamMap.get('state') ?? '';
const accessTokenUrl = `${environment.github_access_token_api_endpoint}?code=${code}`
const res = await fetch(accessTokenUrl);

Expand All @@ -47,7 +44,6 @@ export class AuthComponent implements OnInit {
}

const json = await res.json();
console.log(`${this.constructor.name} ~ ngOnInit ~ json:`, json);
const github_access_token = json.access_token;
this.settings.repository = {
...this.settings.repository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export class SettingsRepositoryComponent implements OnDestroy {
private settings: SettingsService) {

const code = route.snapshot.queryParamMap.get('code') ?? '';
console.log(`${this.constructor.name} ~ ngOnInit ~ code:`, code);

const model = settings.repository ?? {} as RepositorySettings;
const controls: any = {};
Expand Down

0 comments on commit ae21c69

Please sign in to comment.