Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 5b006c4

Browse files
committed
Uses deprecated login api
1 parent f255695 commit 5b006c4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/app/authentication/authentication.component.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,7 @@ export class AuthenticationComponent extends GraphExplorerComponent {
3636

3737
public async ngOnInit() {
3838
// Register Callbacks for redirect flow
39-
app.handleRedirectCallback((error, response) => {
40-
if (error) {
41-
this.acquireTokenErrorCallBack(error);
42-
} else {
43-
AppComponent.explorerValues.authentication.status = 'authenticated';
44-
this.displayUserProfile();
45-
this.setPermissions(response);
46-
}
47-
});
39+
app.handleRedirectCallback(this.acquireTokenErrorCallBack, this.acquireTokenCallBack);
4840

4941
AppComponent.explorerValues.authentication.status = 'anonymous';
5042

0 commit comments

Comments
 (0)