File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,13 @@ export class AuthService extends EventEmitter<AuthServiceEvents> {
9393 // Generate a cryptographically random state parameter.
9494 const state = crypto . randomBytes ( 16 ) . toString ( "hex" )
9595 await this . context . globalState . update ( AUTH_STATE_KEY , state )
96- const params = new URLSearchParams ( { state, uri_scheme : vscode . env . uriScheme } )
96+ const packageJSON = this . context . extension ?. packageJSON
97+ const publisher = packageJSON ?. publisher ?? "RooVeterinaryInc"
98+ const name = packageJSON ?. name ?? "roo-cline"
99+ const params = new URLSearchParams ( {
100+ state,
101+ auth_redirect : `${ vscode . env . uriScheme } ://${ publisher } .${ name } ` ,
102+ } )
97103 const url = `${ getRooCodeApiUrl ( ) } /extension/sign-in?${ params . toString ( ) } `
98104 await vscode . env . openExternal ( vscode . Uri . parse ( url ) )
99105 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments