@@ -61,7 +61,7 @@ func Ports() error {
6161 return fmt .Errorf ("error getting codespace token: %v" , err )
6262 }
6363
64- liveShareClient , err := codespaces .ConnectToLiveshare (ctx , apiClient , token , codespace )
64+ liveShareClient , err := codespaces .ConnectToLiveshare (ctx , apiClient , user . Login , token , codespace )
6565 if err != nil {
6666 return fmt .Errorf ("error connecting to liveshare: %v" , err )
6767 }
@@ -214,7 +214,7 @@ func updatePortVisibility(codespaceName, sourcePort string, public bool) error {
214214 return fmt .Errorf ("error getting codespace: %v" , err )
215215 }
216216
217- lsclient , err := codespaces .ConnectToLiveshare (ctx , apiClient , token , codespace )
217+ lsclient , err := codespaces .ConnectToLiveshare (ctx , apiClient , user . Login , token , codespace )
218218 if err != nil {
219219 return fmt .Errorf ("error connecting to liveshare: %v" , err )
220220 }
@@ -276,7 +276,7 @@ func forwardPort(codespaceName, sourcePort, destPort string) error {
276276 return fmt .Errorf ("error getting codespace: %v" , err )
277277 }
278278
279- lsclient , err := codespaces .ConnectToLiveshare (ctx , apiClient , token , codespace )
279+ lsclient , err := codespaces .ConnectToLiveshare (ctx , apiClient , user . Login , token , codespace )
280280 if err != nil {
281281 return fmt .Errorf ("error connecting to liveshare: %v" , err )
282282 }
0 commit comments