fix(console): configWithPrompt cleanup (#3796)

* fix: configWithPrompt cleanup

* code dialog text

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2022-06-10 12:59:52 +00:00
committed by GitHub
co-authored by Livio Spring
parent 11d24f6d8a
commit b1da8975f5
3 changed files with 15 additions and 17 deletions
+3 -4
View File
@@ -21,11 +21,10 @@ export class AuthGuard implements CanActivate {
const hint = route.queryParams['login_hint'];
const configWithPrompt: Partial<AuthConfig> = {
customQueryParams: {
// prompt: 'select_account',
} as any,
login_hint: hint,
},
};
(configWithPrompt as any).customQueryParams['login_hint'] = hint;
console.log('auth', hint);
console.log(`authenticate with login_hint: ${hint}`);
this.auth.authenticate(configWithPrompt);
} else {
return this.auth.authenticate();