Skip to content

Commit ed794b8

Browse files
ci-botAniket-Engg
authored andcommitted
cleanup console logs
1 parent d9500e7 commit ed794b8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apps/remixdesktop/src/plugins/githubAuthHandler.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const profile: Profile = {
1313
export class GitHubAuthHandler extends ElectronBasePlugin {
1414
clients: GitHubAuthHandlerClient[] = []
1515
constructor() {
16-
console.log('[GitHubAuthHandler] Initializing')
1716
super(profile, clientProfile, GitHubAuthHandlerClient)
1817
this.methods = [...super.methods, 'getClientId', 'getAccessToken']
1918
}
@@ -30,8 +29,6 @@ export class GitHubAuthHandler extends ElectronBasePlugin {
3029
}
3130
})
3231

33-
console.log('[GitHubAuthHandler] GitHub response:', response.data)
34-
3532
if (response.data.access_token) {
3633
this.sendAccessToken(response.data.access_token)
3734
console.log('[GitHubAuthHandler] Access token received:', response.data.access_token)
@@ -75,7 +72,6 @@ const clientProfile: Profile = {
7572
}
7673
class GitHubAuthHandlerClient extends ElectronBasePluginClient {
7774
constructor(webContentsId: number, profile: Profile) {
78-
console.log('[GitHubAuthHandlerClient] Initializing with webContentsId:', webContentsId)
7975
super(webContentsId, profile)
8076
}
8177

@@ -85,7 +81,6 @@ class GitHubAuthHandlerClient extends ElectronBasePluginClient {
8581
const redirectUri = `remix://auth/callback`
8682
const scope = 'repo gist user:email read:user'
8783
const url = `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}&response_type=code`
88-
console.log('[GitHubAuthHandlerClient] Opening GitHub login URL:', url)
8984
shell.openExternal(url); // open in browser
9085
} catch (error) {
9186
console.error('[GitHubAuthHandlerClient] Error fetching client ID:', error)
@@ -94,12 +89,11 @@ class GitHubAuthHandlerClient extends ElectronBasePluginClient {
9489
}
9590

9691
async sendAccessToken(token: string): Promise<void> {
97-
console.log('[GitHubAuthHandlerClient] Sending access token:', token)
92+
9893
this.emit('onLogin', { token })
9994
}
10095

10196
async sendAuthFailure(error: string): Promise<void> {
102-
console.error('[GitHubAuthHandlerClient] Sending auth failure:', error)
10397
this.emit('onError', { error })
10498
}
10599

0 commit comments

Comments
 (0)