Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
3.96k stars 140 forks source link

[Question] How can I get codeium auth token #150

Closed baifengheixi closed 1 year ago

baifengheixi commented 1 year ago

I ran command "Coduiem Auth". It's need a token.

I click copy token in this 2 link

but no value copy in my clipboard

nyngwang commented 1 year ago

It seems that you have to use the webpage opened by Codeium Auth instead of the two links you provided since you missed some URL parameters. This is the real link after entering Codeium Auth (got from my nvim log):

https://www.codeium.com/profile?response_type=token&redirect_uri=vim-show-auth-token&state=a&scope=openid%20profile%20email&redirect_parameters_type=query

Copy-pasting this should work. (but it would require you to login first, I guess)

baifengheixi commented 1 year ago

Oh I can see it in message. Thank you 🚀. But I ran on WSL it's can not open browser 🥲.

fortenforge commented 1 year ago

Were you able to get completions? It would be nice to add something to the README if there are some defined set of steps we can take to get it working in WSL

baifengheixi commented 1 year ago

It seems that you have to use the webpage opened by Codeium Auth instead of the two links you provided since you missed some URL parameters. This is the real link after entering Codeium Auth (got from my nvim log):

https://www.codeium.com/profile?response_type=token&redirect_uri=vim-show-auth-token&state=a&scope=openid%20profile%20email&redirect_parameters_type=query

Copy-pasting this should work. (but it would require you to login first, I guess)

@fortenforge I use this link to get auth token and It's work like a magic

baifengheixi commented 1 year ago

Or maybe I login this plugin in my nvim in Window(not wsl) too.