Limpieza
This commit is contained in:
1 parent
6bb528e5fc
commit
6338e3fef9
7 files changed
+15
-48
No files matched your search
@@ -14,10 +14,12 @@ export class HeaderComponent implements OnInit {
|
||||
|
||||
async login(): Promise<void> {
|
||||
this.oauthService.configure(authConfig);
|
||||
await this.oauthService.loadDiscoveryDocument();
|
||||
sessionStorage.setItem('flow', 'code');
|
||||
|
||||
this.oauthService.initLoginFlow();
|
||||
await this.oauthService.loadDiscoveryDocumentAndTryLogin().then((_) => {
|
||||
console.log(
|
||||
'LOGGED=' + (this.oauthService.hasValidIdToken()
|
||||
&& this.oauthService.hasValidAccessToken())
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
logout(): void {
|
||||
|
||||
Reference in new issue
Block a user