copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.71k stars 122 forks source link

Can I use a token for authentication? #277

Closed madorian closed 3 months ago

madorian commented 3 months ago

I run emacs on a different system, so it would be easier if I could use some kind of token for authentication. Is that possible?

emil-vdw commented 3 months ago

Unfortunately not with the current implementation. Looks like the meat and potatoes of the auth flow is handled by the agent (from copilot.vim) not maintained by us.

madorian commented 3 months ago

ok, but can I somehow specify which browser command to open, so that I can use a specific profile of the browser?

emil-vdw commented 3 months ago

We use the browse-url to open the verification link so would be worth reading up on the docs of that. Looks like you can customize browse-url-browser-function, not sure if this can achieve exactly what you're looking for? (haven't tested this myself)