Skip to content

Commit d9cdca0

Browse files
committed
Fix OAuth errors
1 parent 8d58737 commit d9cdca0

2 files changed

Lines changed: 129 additions & 92 deletions

File tree

assets/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ const App = (() => {
673673
if (event.data && event.data.type === 'oauth-callback' && event.data.token) {
674674
storeToken(event.data.token);
675675
authWindow.close();
676-
await initialize();
676+
await App.init();
677677
}
678678
});
679679
};
@@ -722,8 +722,8 @@ const App = (() => {
722722
};
723723

724724
const initiateLogin = () => {
725-
// Legacy function - redirect to PAT login
726-
initiatePATLogin();
725+
// Show login options: OAuth or PAT
726+
initiateOAuthLogin();
727727
};
728728

729729
const handleAuthError = () => {

0 commit comments

Comments
 (0)